[{"data":1,"prerenderedAt":1319,"buildId":1320},["ShallowReactive",2],{"docs:\u002Fintegrations\u002Fx18n":3},{"page":4,"section":16,"document":17,"credits":10,"prev":1312,"next":1316},{"id":5,"path":6,"file":7,"title":5,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"x18n","\u002Fintegrations\u002Fx18n","integrations\u002Fx18n.md","x18n integration","Check source locale messages and hard-coded strings with the glosslint x18n plugin and export your glossary to x18n's glossary.",null,[],"i-glosslint-x18n","article",true,4,"integrations",{"nodes":18,"toc":1303},[19,45,53,77,208,226,261,267,352,380,386,389,450,457,522,528,537,540,574,577,583,596,681,704,801,815,821,832,862,932,946,952,977,1000,1034,1152,1231,1269,1290],[20,21,22,23,27,28,32,33,36,37,40,41,44],"p",{},"Use ",[24,25,26],"code",{},"glosslint\u002Fx18n"," when your project manages translations with ",[29,30,5],"a",{"href":31},"https:\u002F\u002Fgithub.com\u002Fx18n-dev\u002Fx18n",". The plugin checks your source locale's messages and the hard-coded strings x18n finds, and ",[24,34,35],{},"toX18nGlossary"," turns your glossary into x18n's ",[24,38,39],{},"glossary"," so translators and machine translation see the same terms. ",[24,42,43],{},"@x18n\u002Fcore"," is an optional peer dependency.",[46,47,52],"h2",{"id":48,"anchor":49},"setup",{"label":50,"icon":51},"Section titled \"Setup\"","#","Setup",[20,54,55,56,62,63,66,67,69,70,72,73,76],{},"Load ",[29,57,59],{"href":58},"\u002Fguide\u002Fglossary",[24,60,61],{},".agents\u002Fglossary.md"," with ",[24,64,65],{},"fromGlossary()",", pass it to the plugin from ",[24,68,26],{},", and export it with ",[24,71,35],{}," in ",[24,74,75],{},"x18n.config.ts",":",[78,79,82],"pre",{"language":80,"filename":75,"class":81,"wrap":14},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,83,85,108,109,108,123,108,137,108,139,108,158,108,160,108,175,108,189,108,201],{"class":84},"language-ts",[86,87,90,94,98,101,105],"span",{"class":88,"style":89},"line","display: inline",[86,91,93],{"style":92},"color:#CF222E;--shiki-dark:#FF7B72","import",[86,95,97],{"style":96},"color:#1F2328;--shiki-dark:#E6EDF3"," { defineConfig } ",[86,99,100],{"style":92},"from",[86,102,104],{"style":103},"color:#0A3069;--shiki-dark:#A5D6FF"," \"@x18n\u002Fcore\"",[86,106,107],{"style":96},";","\n",[86,110,111,113,116,118,121],{"class":88,"style":89},[86,112,93],{"style":92},[86,114,115],{"style":96}," { fromGlossary, toX18nGlossary } ",[86,117,100],{"style":92},[86,119,120],{"style":103}," \"glosslint\"",[86,122,107],{"style":96},[86,124,125,127,130,132,135],{"class":88,"style":89},[86,126,93],{"style":92},[86,128,129],{"style":96}," glosslint ",[86,131,100],{"style":92},[86,133,134],{"style":103}," \"glosslint\u002Fx18n\"",[86,136,107],{"style":96},[86,138],{"class":88,"style":89},[86,140,141,144,148,151,155],{"class":88,"style":89},[86,142,143],{"style":92},"const",[86,145,147],{"style":146},"color:#0550AE;--shiki-dark:#79C0FF"," corpus",[86,149,150],{"style":92}," =",[86,152,154],{"style":153},"color:#8250DF;--shiki-dark:#D2A8FF"," fromGlossary",[86,156,157],{"style":96},"();",[86,159],{"class":88,"style":89},[86,161,162,165,168,171],{"class":88,"style":89},[86,163,164],{"style":92},"export",[86,166,167],{"style":92}," default",[86,169,170],{"style":153}," defineConfig",[86,172,174],{"style":173},"color:#953800;--shiki-dark:#FFA657","({",[86,176,177,180,183,186],{"class":88,"style":89},[86,178,179],{"style":96},"  plugins: [",[86,181,182],{"style":153},"glosslint",[86,184,185],{"style":96},"({ corpus })]",[86,187,188],{"style":173},",",[86,190,191,194,196,199],{"class":88,"style":89},[86,192,193],{"style":96},"  glossary: ",[86,195,35],{"style":153},[86,197,198],{"style":96},"(corpus)",[86,200,188],{"style":173},[86,202,203,206],{"class":88,"style":89},[86,204,205],{"style":173},"})",[86,207,107],{"style":96},[20,209,210,211,214,215,225],{},"If you keep your glossary at another path, pass it to ",[24,212,213],{},"fromGlossary(new URL(\".\u002Fdocs\u002Fglossary.md\", import.meta.url))",". Per-locale translations and forms go in the glossary's ",[29,216,218,221,222],{"href":217},"\u002Fguide\u002Fglossary#translations-and-forms",[24,219,220],{},"Translations"," and ",[24,223,224],{},"Forms"," fields:",[78,227,229],{"language":228,"filename":61,"class":81,"wrap":14},"md",[24,230,232,108,238,108,243,108,248,108,253],{"class":231},"language-md",[86,233,234],{"class":88,"style":89},[86,235,237],{"style":236},"color:#0550AE;--shiki-light-font-weight:bold;--shiki-dark:#79C0FF;--shiki-dark-font-weight:bold","## Dock",[86,239,240],{"class":88,"style":89},[86,241,242],{"style":96},"What: A powered stand where one bike is locked.",[86,244,245],{"class":88,"style":89},[86,246,247],{"style":96},"Translations: de: Dock",[86,249,250],{"class":88,"style":89},[86,251,252],{"style":96},"Forms:",[86,254,255,258],{"class":88,"style":89},[86,256,257],{"style":173},"-",[86,259,260],{"style":96}," de: Dockingstation, Dockingstationen",[46,262,266],{"id":263,"anchor":264},"options",{"label":265,"icon":51},"Section titled \"Options\"","Options",[268,269,270,286],"table",{},[271,272,273],"thead",{},[274,275,276,280,283],"tr",{},[277,278,279],"th",{},"Option",[277,281,282],{},"Default",[277,284,285],{},"What it does",[287,288,289,303,323,336],"tbody",{},[274,290,291,296,300],{},[292,293,294],"td",{},[24,295,39],{},[292,297,298],{},[24,299,61],{},[292,301,302],{},"The glossary file to read, as a path from the current folder or a URL.",[274,304,305,310,313],{},[292,306,307],{},[24,308,309],{},"corpus",[292,311,312],{},"none",[292,314,315,316,319,320,322],{},"A corpus to use instead of a file, such as one from ",[24,317,318],{},"defineCorpus",". Not with ",[24,321,39],{},".",[274,324,325,330,333],{},[292,326,327],{},[24,328,329],{},"sourceLocale",[292,331,332],{},"the project's source locale",[292,334,335],{},"The locale whose messages are checked.",[274,337,338,343,345],{},[292,339,340],{},[24,341,342],{},"kindOf",[292,344,312],{},[292,346,347,348,322],{},"Decides a message's kind before glosslint does. See ",[29,349,351],{"href":350},"\u002Fguide\u002Fcasing","Casing rules",[20,353,354,355,357,358,360,361,364,365,367,368,370,371,373,374,322],{},"With no ",[24,356,39],{}," or ",[24,359,309],{},", ",[24,362,363],{},"glosslint()"," reads ",[24,366,61],{}," once, when the config loads. The setup above passes ",[24,369,309],{}," because ",[24,372,35],{}," needs the same terms. Passing both throws ",[29,375,377],{"href":376},"\u002Fguide\u002Fconfig-errors",[24,378,379],{},"GLOSSLINT_C012",[46,381,385],{"id":382,"anchor":383},"checks",{"label":384,"icon":51},"Section titled \"Checks\"","Checks",[20,387,388],{},"The plugin registers three checks in x18n:",[268,390,391,404],{},[271,392,393],{},[274,394,395,398,401],{},[277,396,397],{},"Check",[277,399,400],{},"Default severity",[277,402,403],{},"Reports",[287,405,406,421,436],{},[274,407,408,413,416],{},[292,409,410],{},[24,411,412],{},"glosslint-term",[292,414,415],{},"error",[292,417,418],{},[24,419,420],{},"GLOSSLINT_TERM",[274,422,423,428,431],{},[292,424,425],{},[24,426,427],{},"glosslint-avoid",[292,429,430],{},"warning",[292,432,433],{},[24,434,435],{},"GLOSSLINT_AVOID",[274,437,438,443,445],{},[292,439,440],{},[24,441,442],{},"glosslint-case",[292,444,415],{},[292,446,447],{},[24,448,449],{},"GLOSSLINT_CASE",[20,451,452,453,72,455,76],{},"To change a check's severity, override it under ",[24,454,382],{},[24,456,75],{},[78,458,459],{"language":80,"filename":75,"class":81,"wrap":14},[24,460,461,108,471,108,481,108,491,108,496,108,509,108,516],{"class":84},[86,462,463,465,467,469],{"class":88,"style":89},[86,464,164],{"style":92},[86,466,167],{"style":92},[86,468,170],{"style":153},[86,470,174],{"style":173},[86,472,473,475,477,479],{"class":88,"style":89},[86,474,179],{"style":96},[86,476,182],{"style":153},[86,478,185],{"style":96},[86,480,188],{"style":173},[86,482,483,485,487,489],{"class":88,"style":89},[86,484,193],{"style":96},[86,486,35],{"style":153},[86,488,198],{"style":96},[86,490,188],{"style":173},[86,492,493],{"class":88,"style":89},[86,494,495],{"style":96},"  checks: {",[86,497,498,501,504,507],{"class":88,"style":89},[86,499,500],{"style":103},"    \"glosslint-avoid\"",[86,502,503],{"style":96},": ",[86,505,506],{"style":103},"\"error\"",[86,508,188],{"style":96},[86,510,511,514],{"class":88,"style":89},[86,512,513],{"style":96},"  }",[86,515,188],{"style":173},[86,517,518,520],{"class":88,"style":89},[86,519,205],{"style":173},[86,521,107],{"style":96},[46,523,527],{"id":524,"anchor":525},"message-kinds-and-fixes",{"label":526,"icon":51},"Section titled \"Message kinds and fixes\"","Message kinds and fixes",[20,529,530,531,533,534,536],{},"A message's key decides whether its value is a label, a header, or a sentence, following the rules in ",[29,532,351],{"href":350},". If the key does not place the message, glosslint falls back to the text's shape. Pass ",[24,535,342],{}," to decide specific keys or files yourself before glosslint runs.",[20,538,539],{},"Fixes depend on the finding kind and how the message's kind was decided:",[541,542,543,559,568],"ul",{},[544,545,546,550,551,554,555,558],"li",{},[547,548,549],"strong",{},"Safe fixes."," Spelling and casing findings in messages carry a safe fix that ",[24,552,553],{},"x18n check --fix"," applies, except ",[24,556,557],{},"context"," terms in messages placed only by shape.",[544,560,561,564,565,567],{},[547,562,563],{},"Quick fixes."," A ",[24,566,557],{}," casing fix in a message placed only by its shape is offered as a quick fix you pick yourself, rather than a safe fix, because the shape guess might be wrong.",[544,569,570,573],{},[547,571,572],{},"No fix."," Avoid words and hard-coded strings get no fix. Avoid words need a person to verify the meaning first, and x18n does not edit source files for hard-coded strings outside extraction.",[20,575,576],{},"When one message has several safe fixes, each safe fix applies all of them at once, and each finding also keeps a quick fix that changes only its own span.",[46,578,582],{"id":579,"anchor":580},"exporting-your-corpus-to-x18ns-glossary",{"label":581,"icon":51},"Section titled \"Exporting your corpus to x18n's glossary\"","Exporting your corpus to x18n's glossary",[20,584,585,588,589,357,592,595],{},[24,586,587],{},"toX18nGlossary(corpus)"," maps each of your own terms to an x18n glossary entry. The terms that ",[24,590,591],{},"Presets: tech, inclusive",[24,593,594],{},"extends: [tech]"," add are left out, so translators get your glossary and not hundreds of product names; a term of your own with a preset term's name is kept:",[541,597,598,641,668],{},[544,599,600,360,603,606,607,610,611,221,613,615,616,621,622,357,625,628,629,632,633,636,637,640],{},[24,601,602],{},"term",[24,604,605],{},"translations",", and ",[24,608,609],{},"forms"," come from the glossary's ",[24,612,220],{},[24,614,224],{}," fields or from ",[29,617,619],{"href":618},"\u002Fguide\u002Fcorpus#typescript-only-term-fields",[24,620,318],{},". A locale that says ",[24,623,624],{},"keep",[24,626,627],{},"keep (gloss)"," gets the term itself as its translation, a bare ",[24,630,631],{},"translate"," gets none, and ",[24,634,635],{},"`\u002Fpattern\u002F`"," forms and ",[24,638,639],{},"Hints"," are left out, since x18n's glossary has no place for them.",[544,642,643,646,647,221,650,653,654,657,658,660,661,664,665,322],{},[24,644,645],{},"note"," combines the term's ",[24,648,649],{},"description",[24,651,652],{},"nuance",". Pass ",[24,655,656],{},"{ note: \"short\" }"," for the ",[24,659,649],{}," alone, the glossary's ",[24,662,663],{},"What",", when translators want a note that fits on one line. A gloss is added after it as ",[24,666,667],{},"fr: keep, gloss as \"couche\"",[544,669,670,673,674,677,678,680],{},[24,671,672],{},"doNotTranslate: true"," is set on every ",[24,675,676],{},"exact"," term whose ",[24,679,220],{}," items all keep the term, or that has none.",[20,682,683,684,687,688,221,690,692,693,696,697,700,701,703],{},"For example, given ",[24,685,686],{},"Dock"," (with German ",[24,689,605],{},[24,691,609],{},") and ",[24,694,695],{},"eBike"," (",[24,698,699],{},"case: \"exact\""," with no translations), ",[24,702,587],{}," produces:",[78,705,706],{"language":80,"class":81,"wrap":14},[24,707,708,108,713,108,718,108,728,108,738,108,754,108,764,108,769,108,773,108,782,108,792,108,796],{"class":84},[86,709,710],{"class":88,"style":89},[86,711,712],{"style":96},"[",[86,714,715],{"class":88,"style":89},[86,716,717],{"style":96},"  {",[86,719,720,723,726],{"class":88,"style":89},[86,721,722],{"style":96},"    term: ",[86,724,725],{"style":103},"\"Dock\"",[86,727,188],{"style":96},[86,729,730,733,735],{"class":88,"style":89},[86,731,732],{"style":96},"    translations: { de: ",[86,734,725],{"style":103},[86,736,737],{"style":96}," },",[86,739,740,743,746,748,751],{"class":88,"style":89},[86,741,742],{"style":96},"    forms: { de: [",[86,744,745],{"style":103},"\"Dockingstation\"",[86,747,360],{"style":96},[86,749,750],{"style":103},"\"Dockingstationen\"",[86,752,753],{"style":96},"] },",[86,755,756,759,762],{"class":88,"style":89},[86,757,758],{"style":96},"    note: ",[86,760,761],{"style":103},"\"A powered stand where one bike is locked. A station is a group of docks.\"",[86,763,188],{"style":96},[86,765,766],{"class":88,"style":89},[86,767,768],{"style":96},"  },",[86,770,771],{"class":88,"style":89},[86,772,717],{"style":96},[86,774,775,777,780],{"class":88,"style":89},[86,776,722],{"style":96},[86,778,779],{"style":103},"\"eBike\"",[86,781,188],{"style":96},[86,783,784,787,790],{"class":88,"style":89},[86,785,786],{"style":96},"    doNotTranslate: ",[86,788,789],{"style":146},"true",[86,791,188],{"style":96},[86,793,794],{"class":88,"style":89},[86,795,768],{"style":96},[86,797,798],{"class":88,"style":89},[86,799,800],{"style":96},"]",[20,802,803,804,657,808,810,811,814],{},"See ",[29,805,807],{"href":806},"\u002Fguide\u002Fapi","API reference",[24,809,35],{}," function and ",[24,812,813],{},"X18nGlossaryEntry"," type.",[46,816,820],{"id":817,"anchor":818},"merging-into-a-shared-glossary-yaml",{"label":819,"icon":51},"Section titled \"Merging into a shared glossary YAML\"","Merging into a shared glossary YAML",[20,822,823,824,827,828,831],{},"When translators keep an x18n glossary in YAML, such as a ",[24,825,826],{},"glossary.yml"," shared by several repositories, ",[24,829,830],{},"glosslint export --merge"," adds your glossary to it without dropping their work:",[78,833,836],{"language":834,"frame":835,"class":81,"wrap":14},"sh","terminal",[24,837,839],{"class":838},"language-sh",[86,840,841,844,847,850,853,856,859],{"class":88,"style":89},[86,842,843],{"style":173},"npx",[86,845,846],{"style":103}," glosslint",[86,848,849],{"style":103}," export",[86,851,852],{"style":146}," --note",[86,854,855],{"style":103}," short",[86,857,858],{"style":146}," --merge",[86,860,861],{"style":103}," ..\u002Ftranslations\u002Fglossary.yml",[541,863,864,907,929],{},[544,865,866,867,869,870,873,874,877,878,880,881,884,885,888,889,877,892,895,896,898,899,902,903,906],{},"An entry matches one in the file when they share the term or one of its source-locale ",[24,868,609],{},", in any case and with hyphens and spaces ignored. \"Prerendering\" matches ",[24,871,872],{},"prerendering",", and a term ",[24,875,876],{},"Prerender"," with the form ",[24,879,872],{}," matches it too. Other punctuation counts, so ",[24,882,883],{},"C#"," doesn't match ",[24,886,887],{},"C++",". A term goes to the entry with the same term before any form is compared, so ",[24,890,891],{},"Render",[24,893,894],{},"Rendering"," goes to ",[24,897,891],{}," when the file has both. A term that matches more than one entry, or two terms that match the same entry, stop the merge before anything is written, and the command names them. ",[24,900,901],{},"--source-locale"," names the locale of those forms (default ",[24,904,905],{},"en",").",[544,908,909,910,912,913,915,916,918,919,922,923,925,926,928],{},"A matched entry keeps its ",[24,911,602],{},", its ",[24,914,605],{}," and every field glosslint does not write. glosslint sets ",[24,917,645],{},", adds translations and forms for locales the entry lacks, and sets ",[24,920,921],{},"doNotTranslate"," only on entries with no translations. A term with ",[24,924,220],{}," whose entry has ",[24,927,672],{}," stops the merge, since x18n would never translate it, and the command names the entry and the flag to remove. A locale that keeps the term agrees with the flag, so it is skipped instead. A translation the file already has wins over the glossary's, and the command lists each one it kept.",[544,930,931],{},"Terms with no match are added at the end. Comments, entry order and the formatting of the entries it does not touch stay as they are.",[20,933,934,935,360,938,941,942,322],{},"Without ",[24,936,937],{},"--merge",[24,939,940],{},"glosslint export"," prints the entries as YAML. See ",[29,943,945],{"href":944},"\u002Fintegrations\u002Fcli#export","Command line",[46,947,951],{"id":948,"anchor":949},"exporting-a-locale-to-diglot",{"label":950,"icon":51},"Section titled \"Exporting a locale to diglot\"","Exporting a locale to diglot",[20,953,954,958,959,962,963,966,967,970,971,360,973,221,975,76],{},[29,955,957],{"href":956},"https:\u002F\u002Fgithub.com\u002Fdanielroe\u002Fdiglot","diglot"," keeps one glossary per locale, such as ",[24,960,961],{},"fr\u002Fglossary.yml",", whose entries replace the shared x18n entries with the same term and can say more: a decision, the patterns a translation may also be written as, and a ",[24,964,965],{},"match"," pattern for the term in the source. ",[24,968,969],{},"glosslint export --diglot \u003Clocale>"," writes that file from the locale's items in ",[24,972,220],{},[24,974,224],{},[24,976,639],{},[78,978,979],{"language":834,"frame":835,"class":81,"wrap":14},[24,980,981],{"class":838},[86,982,983,985,987,989,992,995,997],{"class":88,"style":89},[86,984,843],{"style":173},[86,986,846],{"style":103},[86,988,849],{"style":103},[86,990,991],{"style":146}," --diglot",[86,993,994],{"style":103}," fr",[86,996,858],{"style":146},[86,998,999],{"style":103}," ..\u002Ftranslations\u002Ffr\u002Fglossary.yml",[20,1001,1002,1003,1005,1006,1009,1010,1012,1013,1016,1017,1020,1021,606,1024,1012,1027,360,1030,1033],{},"Only the terms with an item for the locale in ",[24,1004,220],{}," are exported, so a ",[24,1007,1008],{},"Case: exact"," term without one stays in the shared x18n file. Given the example glossary, where ",[24,1011,686],{}," has ",[24,1014,1015],{},"fr: borne",", the form ",[24,1018,1019],{},"fr: bornes"," and the hint ",[24,1022,1023],{},"fr: Feminine: la borne.",[24,1025,1026],{},"Week Pass (WP)",[24,1028,1029],{},"fr: keep (abonnement hebdomadaire)",[24,1031,1032],{},"glosslint export --diglot fr"," prints:",[78,1035,1037],{"language":1036,"class":81,"wrap":14},"yaml",[24,1038,1040,108,1048,108,1060,108,1070,108,1080,108,1090,108,1100,108,1109,108,1119,108,1127,108,1137,108,1144],{"class":1039},"language-yaml",[86,1041,1042,1046],{"class":88,"style":89},[86,1043,1045],{"style":1044},"color:#116329;--shiki-dark:#7EE787","terms",[86,1047,76],{"style":96},[86,1049,1050,1053,1055,1057],{"class":88,"style":89},[86,1051,1052],{"style":96},"  - ",[86,1054,602],{"style":1044},[86,1056,503],{"style":96},[86,1058,1059],{"style":103},"Week Pass",[86,1061,1062,1065,1067],{"class":88,"style":89},[86,1063,1064],{"style":1044},"    match",[86,1066,503],{"style":96},[86,1068,1069],{"style":103},"\\b(?:weekly[- ]?tickets|weekly[- ]?ticket|Week[- ]?Passing|Week[- ]?Passed|Week[- ]?Passes|Week[- ]?Pass|WPs|WP)\\b",[86,1071,1072,1075,1077],{"class":88,"style":89},[86,1073,1074],{"style":1044},"    decision",[86,1076,503],{"style":96},[86,1078,1079],{"style":103},"keep-gloss",[86,1081,1082,1085,1087],{"class":88,"style":89},[86,1083,1084],{"style":1044},"    gloss",[86,1086,503],{"style":96},[86,1088,1089],{"style":103},"abonnement hebdomadaire",[86,1091,1092,1094,1096,1098],{"class":88,"style":89},[86,1093,1052],{"style":96},[86,1095,602],{"style":1044},[86,1097,503],{"style":96},[86,1099,686],{"style":103},[86,1101,1102,1104,1106],{"class":88,"style":89},[86,1103,1064],{"style":1044},[86,1105,503],{"style":96},[86,1107,1108],{"style":103},"\\b(?:Docking|Docked|Docks|racks|bays|Dock|rack|bay)\\b",[86,1110,1111,1114,1116],{"class":88,"style":89},[86,1112,1113],{"style":1044},"    note",[86,1115,503],{"style":96},[86,1117,1118],{"style":103},"\"Feminine: la borne.\"",[86,1120,1121,1123,1125],{"class":88,"style":89},[86,1122,1074],{"style":1044},[86,1124,503],{"style":96},[86,1126,631],{"style":103},[86,1128,1129,1132,1134],{"class":88,"style":89},[86,1130,1131],{"style":1044},"    target",[86,1133,503],{"style":96},[86,1135,1136],{"style":103},"borne",[86,1138,1139,1142],{"class":88,"style":89},[86,1140,1141],{"style":1044},"    accept",[86,1143,76],{"style":96},[86,1145,1146,1149],{"class":88,"style":89},[86,1147,1148],{"style":96},"      - ",[86,1150,1151],{"style":103},"bornes",[541,1153,1154,1181,1195,1203,1222],{},[544,1155,1156,1159,1160,360,1162,1164,1165,1168,1169,1171,1172,1175,1176,1178,1179,322],{},[24,1157,1158],{},"decision"," is ",[24,1161,624],{},[24,1163,1079],{}," with the ",[24,1166,1167],{},"gloss",", or ",[24,1170,631],{}," with the translation as ",[24,1173,1174],{},"target",", or no ",[24,1177,1174],{}," for a bare ",[24,1180,631],{},[544,1182,1183,1186,1187,1189,1190,1192,1193,322],{},[24,1184,1185],{},"accept"," lists the locale's ",[24,1188,224],{},", escaped, and its ",[24,1191,635],{}," forms as they are. A form in backticks loses them before it is escaped. It is written only for ",[24,1194,631],{},[544,1196,1197,1199,1200,1202],{},[24,1198,645],{}," is the locale's ",[24,1201,639],{}," item.",[544,1204,1205,1207,1208,1210,1211,1214,1215,221,1218,1221],{},[24,1206,965],{}," finds the term in the source: the term, its abbreviations, its source-locale ",[24,1209,224],{}," and its ",[24,1212,1213],{},"Avoid"," words, with their plurals and ",[24,1216,1217],{},"ed",[24,1219,1220],{},"ing"," forms, longest first, as whole words. A space or hyphen inside a word is optional.",[544,1223,1224,1227,1228,1230],{},[24,1225,1226],{},"caseSensitive: true"," is set on ",[24,1229,1008],{}," terms only.",[20,1232,1233,1236,1237,1239,1240,360,1242,360,1244,221,1246,606,1248,1250,1251,1253,1254,221,1256,1259,1260,1263,1264,221,1266,1268],{},[24,1234,1235],{},"--merge \u003Cfile>"," writes into the locale's diglot glossary in place, matching entries as the x18n merge does, by term and then by source-locale form, and keeping the file's spelling of ",[24,1238,602],{},". glosslint owns ",[24,1241,1158],{},[24,1243,1174],{},[24,1245,1167],{},[24,1247,1185],{},[24,1249,645],{}," when the term has a hint. It adds ",[24,1252,1185],{}," patterns the entry lacks and removes none. The file keeps its own ",[24,1255,965],{},[24,1257,1258],{},"caseSensitive",", or its lack of them, its note when the term has no hint, every other key, ",[24,1261,1262],{},"style",", comments and order. Entries the glossary doesn't have stay, and new terms are added at the end with the generated ",[24,1265,965],{},[24,1267,1258],{},". A file with CRLF line endings keeps them. A second merge changes no byte. The command prints what changed:",[78,1270,1272],{"language":1271,"class":81,"wrap":14},"txt",[24,1273,1275,108,1280,108,1285],{"class":1274},"language-txt",[86,1276,1277],{"class":88,"style":89},[86,1278,1279],{},"fr\u002Fglossary.yml: 2 terms merged, 1 added, 1 updated, 0 unchanged, 1 kept `match`.",[86,1281,1282],{"class":88,"style":89},[86,1283,1284],{},"+ Week Pass",[86,1286,1287],{"class":88,"style":89},[86,1288,1289],{},"~ dock: note, decision (was keep), target, accept",[20,1291,1292,1295,1296,1298,1299,1302],{},[24,1293,1294],{},"kept `match`"," counts the entries whose own ",[24,1297,965],{}," differs from the one glosslint generates; the file's stays. A missing locale or one that is not a BCP 47 tag, a locale no term has, a merge file that is missing, isn't valid YAML or is an x18n list, a term that matches two entries, or two terms that match one entry exit ",[24,1300,1301],{},"2"," and write nothing.",[1304,1306,1307,1308,1309,1310,1311],{"id":48,"depth":1305,"text":52},2,{"id":263,"depth":1305,"text":266},{"id":382,"depth":1305,"text":385},{"id":524,"depth":1305,"text":527},{"id":579,"depth":1305,"text":582},{"id":817,"depth":1305,"text":820},{"id":948,"depth":1305,"text":951},{"path":1313,"title":1314,"description":1315},"\u002Fintegrations\u002Foxlint","Oxlint","Run glosslint's four rules as an Oxlint JS plugin on JavaScript, TypeScript, and Vue script blocks, using your glossary file.",{"path":1317,"title":945,"description":1318},"\u002Fintegrations\u002Fcli","Run the glosslint CLI to check Markdown docs, lint and repair your glossary with doctor, test examples, print corpora, and explain words.",1795952942874,"f20d75f8-66fe-45da-ad80-3ee49bbc9209"]