[{"data":1,"prerenderedAt":880},["ShallowReactive",2],{"navigation":3,"\u002Freference\u002Fjavascript-api":100,"\u002Freference\u002Fjavascript-api-surround":875},[4,19,57,91,96],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":18},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F2.quick-start",false,{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":18},"Guides","i-lucide-book-open","\u002Fguides","2.guides",[25,29,33,37,41,45,49,53],{"title":26,"path":27,"stem":28},"Locale files","\u002Fguides\u002Flocale-files","2.guides\u002F1.locale-files",{"title":30,"path":31,"stem":32},"Translating","\u002Fguides\u002Ftranslating","2.guides\u002F2.translating",{"title":34,"path":35,"stem":36},"Linked messages","\u002Fguides\u002Flinked-messages","2.guides\u002F3.linked-messages",{"title":38,"path":39,"stem":40},"Formats","\u002Fguides\u002Fformats","2.guides\u002F4.formats",{"title":42,"path":43,"stem":44},"Loading","\u002Fguides\u002Floading","2.guides\u002F5.loading",{"title":46,"path":47,"stem":48},"Global access and scope","\u002Fguides\u002Fglobal-and-scope","2.guides\u002F6.global-and-scope",{"title":50,"path":51,"stem":52},"Tauri","\u002Fguides\u002Ftauri","2.guides\u002F7.tauri",{"title":54,"path":55,"stem":56},"Checks and tracing","\u002Fguides\u002Fchecks-and-tracing","2.guides\u002F8.checks-and-tracing",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":18},"API reference","i-lucide-file-code","\u002Freference","3.reference",[63,67,71,75,79,83,87],{"title":64,"path":65,"stem":66},"JavaScript API","\u002Freference\u002Fjavascript-api","3.reference\u002F1.javascript-api",{"title":68,"path":69,"stem":70},"Types","\u002Freference\u002Ftypes","3.reference\u002F2.types",{"title":72,"path":73,"stem":74},"Tauri commands","\u002Freference\u002Fcommands","3.reference\u002F3.commands",{"title":76,"path":77,"stem":78},"Permissions","\u002Freference\u002Fpermissions","3.reference\u002F4.permissions",{"title":80,"path":81,"stem":82},"Rust API","\u002Freference\u002Frust-api","3.reference\u002F5.rust-api",{"title":84,"path":85,"stem":86},"Features","\u002Freference\u002Ffeatures","3.reference\u002F6.features",{"title":88,"path":89,"stem":90},"i18n.json","\u002Freference\u002Fi18n-json","3.reference\u002F7.i18n-json",{"title":92,"path":93,"stem":94,"icon":95},"Platforms","\u002Fplatforms","4.platforms","i-lucide-monitor-smartphone",{"title":97,"path":98,"stem":99},"Changelog","\u002Fchangelog","9.changelog",{"id":101,"title":64,"body":102,"description":868,"extension":869,"generated":870,"links":871,"meta":872,"navigation":870,"path":65,"seo":873,"stem":66,"__hash__":874},"docs\u002F3.reference\u002F1.javascript-api.md",{"type":103,"value":104,"toc":857},"minimark",[105,119,124,135,216,222,297,312,317,351,363,512,516,566,572,581,642,699,704,717,727,732,759,765,832,853],[106,107,108,109,113,114,118],"p",{},"Everything ",[110,111,112],"code",{},"tauri-plugin-i18n-next-api"," exports, generated from the guest-js sources.\nOption and result types are on the ",[115,116,117],"a",{"href":69},"types page",".",[120,121,122],"h2",{"id":112},[110,123,112],{},[106,125,126,127,118],{},"From ",[115,128,132],{"href":129,"rel":130},"https:\u002F\u002Fgithub.com\u002Fs00d\u002Fi18n-next-rs\u002Fblob\u002Fmain\u002Fcrates\u002Ftauri-plugin-i18n-next\u002Fguest-js\u002Findex.ts",[131],"nofollow",[110,133,134],{},"crates\u002Ftauri-plugin-i18n-next\u002Fguest-js\u002Findex.ts",[136,137,138,151],"table",{},[139,140,141],"thead",{},[142,143,144,148],"tr",{},[145,146,147],"th",{},"Function",[145,149,150],{},"Description",[152,153,154,188],"tbody",{},[142,155,156,165],{},[157,158,159],"td",{},[115,160,162],{"href":161},"#meta",[110,163,164],{},"meta()",[157,166,167,168,171,172,175,176,179,180,183,184,187],{},"Asks the plugin for the meta of ",[110,169,170],{},"locale"," (the active one by default) and ",[110,173,174],{},"page",". The command answers raw JSON bytes (no serde round trip): they are parsed here. ",[110,177,178],{},"languages"," (",[110,181,182],{},"navigator.languages",") lets the first call pick the start locale; ",[110,185,186],{},"timeZone"," (the WebView's IANA zone) becomes the zone of Rust dates unless the catalog has one.",[142,189,190,198],{},[157,191,192],{},[115,193,195],{"href":194},"#connect",[110,196,197],{},"connect()",[157,199,200,201,204,205,207,208,211,212,215],{},"Connects ",[110,202,203],{},"i18n"," to the plugin: loads the active locale's root (and ",[110,206,174],{},"), follows ",[110,209,210],{},"changed"," from Rust and other windows (late or out-of-order events are dropped by version), reports misses in dev and keeps ",[110,213,214],{},"\u003Chtml lang dir>"," in step.",[217,218,220],"h3",{"id":219},"meta",[110,221,164],{},[223,224,229],"pre",{"className":225,"code":226,"language":227,"meta":228,"style":228},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","meta(options: { locale?: string; page?: string; languages?: readonly string[]; timeZone?: string } = {}): Promise\u003CMeta>\n","ts","",[110,230,231],{"__ignoreMap":228},[232,233,236,239,243,247,250,253,256,259,262,264,267,269,272,275,278,281,284,288,291,294],"span",{"class":234,"line":235},"line",1,[232,237,219],{"class":238},"s2Zo4",[232,240,242],{"class":241},"sTEyZ","(options: ",[232,244,246],{"class":245},"sMK4o","{",[232,248,249],{"class":241}," locale?",[232,251,252],{"class":245},":",[232,254,255],{"class":241}," string; page",[232,257,258],{"class":245},"?:",[232,260,261],{"class":241}," string; languages",[232,263,258],{"class":245},[232,265,266],{"class":241}," readonly string[]; timeZone",[232,268,258],{"class":245},[232,270,271],{"class":241}," string ",[232,273,274],{"class":245},"}",[232,276,277],{"class":245}," =",[232,279,280],{"class":245}," {}",[232,282,283],{"class":241},"): ",[232,285,287],{"class":286},"sBMFI","Promise",[232,289,290],{"class":245},"\u003C",[232,292,293],{"class":241},"Meta",[232,295,296],{"class":245},">\n",[106,298,167,299,171,301,303,304,306,307,183,309,311],{},[110,300,170],{},[110,302,174],{},". The\ncommand answers raw JSON bytes (no serde round trip): they are parsed here. ",[110,305,178],{},"\n(",[110,308,182],{},[110,310,186],{},"\n(the WebView's IANA zone) becomes the zone of Rust dates unless the catalog has one.",[217,313,315],{"id":314},"connect",[110,316,197],{},[223,318,320],{"className":225,"code":319,"language":227,"meta":228,"style":228},"connect(i18n: I18nInstance, options: ConnectOptions = {}): Promise\u003CLink>\n",[110,321,322],{"__ignoreMap":228},[232,323,324,326,329,332,335,338,340,342,344,346,349],{"class":234,"line":235},[232,325,314],{"class":238},[232,327,328],{"class":241},"(i18n: I18nInstance",[232,330,331],{"class":245},",",[232,333,334],{"class":241}," options: ConnectOptions ",[232,336,337],{"class":245},"=",[232,339,280],{"class":245},[232,341,283],{"class":241},[232,343,287],{"class":286},[232,345,290],{"class":245},[232,347,348],{"class":241},"Link",[232,350,296],{"class":245},[106,352,200,353,204,355,357,358,360,361,215],{},[110,354,203],{},[110,356,174],{},"), follows\n",[110,359,210],{}," from Rust and other windows (late or out-of-order events are dropped by version),\nreports misses in dev and keeps ",[110,362,214],{},[223,364,366],{"className":225,"code":365,"language":227,"meta":228,"style":228},"import { createI18n } from '@i18n-micro\u002Fruntime'\nconst link = await connect(createI18n({ locale: 'en' }), { page: 'index' })\nawait link.setPage('settings')\nawait link.setLocale('de')\n",[110,367,368,396,464,489],{"__ignoreMap":228},[232,369,370,374,377,380,383,386,389,393],{"class":234,"line":235},[232,371,373],{"class":372},"s7zQu","import",[232,375,376],{"class":245}," {",[232,378,379],{"class":241}," createI18n",[232,381,382],{"class":245}," }",[232,384,385],{"class":372}," from",[232,387,388],{"class":245}," '",[232,390,392],{"class":391},"sfazB","@i18n-micro\u002Fruntime",[232,394,395],{"class":245},"'\n",[232,397,399,403,406,408,411,414,417,420,422,424,428,430,432,435,438,440,443,445,447,450,452,454,457,459,461],{"class":234,"line":398},2,[232,400,402],{"class":401},"spNyl","const",[232,404,405],{"class":241}," link ",[232,407,337],{"class":245},[232,409,410],{"class":372}," await",[232,412,413],{"class":238}," connect",[232,415,416],{"class":241},"(",[232,418,419],{"class":238},"createI18n",[232,421,416],{"class":241},[232,423,246],{"class":245},[232,425,427],{"class":426},"swJcz"," locale",[232,429,252],{"class":245},[232,431,388],{"class":245},[232,433,434],{"class":391},"en",[232,436,437],{"class":245},"'",[232,439,382],{"class":245},[232,441,442],{"class":241},")",[232,444,331],{"class":245},[232,446,376],{"class":245},[232,448,449],{"class":426}," page",[232,451,252],{"class":245},[232,453,388],{"class":245},[232,455,456],{"class":391},"index",[232,458,437],{"class":245},[232,460,382],{"class":245},[232,462,463],{"class":241},")\n",[232,465,467,470,473,475,478,480,482,485,487],{"class":234,"line":466},3,[232,468,469],{"class":372},"await",[232,471,472],{"class":241}," link",[232,474,118],{"class":245},[232,476,477],{"class":238},"setPage",[232,479,416],{"class":241},[232,481,437],{"class":245},[232,483,484],{"class":391},"settings",[232,486,437],{"class":245},[232,488,463],{"class":241},[232,490,492,494,496,498,501,503,505,508,510],{"class":234,"line":491},4,[232,493,469],{"class":372},[232,495,472],{"class":241},[232,497,118],{"class":245},[232,499,500],{"class":238},"setLocale",[232,502,416],{"class":241},[232,504,437],{"class":245},[232,506,507],{"class":391},"de",[232,509,437],{"class":245},[232,511,463],{"class":241},[217,513,515],{"id":514},"constants","Constants",[136,517,518,530],{},[139,519,520],{},[142,521,522,525,528],{},[145,523,524],{},"Constant",[145,526,527],{},"Value",[145,529,150],{},[152,531,532,547],{},[142,533,534,539,544],{},[157,535,536],{},[110,537,538],{},"EVENT_CHANGED",[157,540,541],{},[110,542,543],{},"'i18n-next:\u002F\u002Fchanged'",[157,545,546],{},"The event every window gets after a change.",[142,548,549,554,559],{},[157,550,551],{},[110,552,553],{},"EVENT_MISSING",[157,555,556],{},[110,557,558],{},"'i18n-next:\u002F\u002Fmissing'",[157,560,561,562,565],{},"The dev event of the missing-key report: one ",[110,563,564],{},"{ locale, page, key, count }"," per new key.",[120,567,569],{"id":568},"tauri-plugin-i18n-next-apivue",[110,570,571],{},"tauri-plugin-i18n-next-api\u002Fvue",[106,573,126,574,118],{},[115,575,578],{"href":576,"rel":577},"https:\u002F\u002Fgithub.com\u002Fs00d\u002Fi18n-next-rs\u002Fblob\u002Fmain\u002Fcrates\u002Ftauri-plugin-i18n-next\u002Fguest-js\u002Fvue.ts",[131],[110,579,580],{},"crates\u002Ftauri-plugin-i18n-next\u002Fguest-js\u002Fvue.ts",[106,582,583,584,590,591,590,596,590,601,590,605,590,611,590,617,590,621,590,627,590,633,590,638,118],{},"Also exported here, documented once above: ",[115,585,587],{"href":586},"\u002Freference\u002Ftypes#locale",[110,588,589],{},"Locale",", ",[115,592,594],{"href":593},"\u002Freference\u002Ftypes#meta",[110,595,293],{},[115,597,599],{"href":598},"#constants",[110,600,538],{},[115,602,603],{"href":598},[110,604,553],{},[115,606,608],{"href":607},"\u002Freference\u002Ftypes#changedevent",[110,609,610],{},"ChangedEvent",[115,612,614],{"href":613},"\u002Freference\u002Ftypes#missingevent",[110,615,616],{},"MissingEvent",[115,618,619],{"href":161},[110,620,164],{},[115,622,624],{"href":623},"\u002Freference\u002Ftypes#i18ninstance",[110,625,626],{},"I18nInstance",[115,628,630],{"href":629},"\u002Freference\u002Ftypes#connectoptions",[110,631,632],{},"ConnectOptions",[115,634,636],{"href":635},"\u002Freference\u002Ftypes#link",[110,637,348],{},[115,639,640],{"href":194},[110,641,197],{},[136,643,644,652],{},[139,645,646],{},[142,647,648,650],{},[145,649,147],{},[145,651,150],{},[152,653,654,680],{},[142,655,656,664],{},[157,657,658],{},[115,659,661],{"href":660},"#usei18nlink",[110,662,663],{},"useI18nLink()",[157,665,666,667,670,671,590,673,590,676,679],{},"The link of the app's ",[110,668,669],{},"createTauriI18n"," plugin (",[110,672,500],{},[110,674,675],{},"preload",[110,677,678],{},"version",", …).",[142,681,682,690],{},[157,683,684],{},[115,685,687],{"href":686},"#createtaurii18n",[110,688,689],{},"createTauriI18n()",[157,691,692,694,695,698],{},[110,693,419],{}," of ",[110,696,697],{},"@i18n-micro\u002Fvue"," fed by the plugin:",[217,700,702],{"id":701},"usei18nlink",[110,703,663],{},[223,705,707],{"className":225,"code":706,"language":227,"meta":228,"style":228},"useI18nLink(): Link\n",[110,708,709],{"__ignoreMap":228},[232,710,711,714],{"class":234,"line":235},[232,712,713],{"class":238},"useI18nLink",[232,715,716],{"class":241},"(): Link\n",[106,718,666,719,670,721,590,723,590,725,679],{},[110,720,669],{},[110,722,500],{},[110,724,675],{},[110,726,678],{},[217,728,730],{"id":729},"createtaurii18n",[110,731,689],{},[223,733,735],{"className":225,"code":734,"language":227,"meta":228,"style":228},"createTauriI18n(options: TauriI18nOptions = {}): Promise\u003CTauriI18nPlugin>\n",[110,736,737],{"__ignoreMap":228},[232,738,739,741,744,746,748,750,752,754,757],{"class":234,"line":235},[232,740,669],{"class":238},[232,742,743],{"class":241},"(options: TauriI18nOptions ",[232,745,337],{"class":245},[232,747,280],{"class":245},[232,749,283],{"class":241},[232,751,287],{"class":286},[232,753,290],{"class":245},[232,755,756],{"class":241},"TauriI18nPlugin",[232,758,296],{"class":245},[106,760,761,694,763,698],{},[110,762,419],{},[110,764,697],{},[223,766,768],{"className":225,"code":767,"language":227,"meta":228,"style":228},"import { createTauriI18n } from 'tauri-plugin-i18n-next-api\u002Fvue'\napp.use(router)\napp.use(await createTauriI18n({ router }))   \u002F\u002F beforeResolve loads the page chunk\n",[110,769,770,789,802],{"__ignoreMap":228},[232,771,772,774,776,779,781,783,785,787],{"class":234,"line":235},[232,773,373],{"class":372},[232,775,376],{"class":245},[232,777,778],{"class":241}," createTauriI18n",[232,780,382],{"class":245},[232,782,385],{"class":372},[232,784,388],{"class":245},[232,786,571],{"class":391},[232,788,395],{"class":245},[232,790,791,794,796,799],{"class":234,"line":398},[232,792,793],{"class":241},"app",[232,795,118],{"class":245},[232,797,798],{"class":238},"use",[232,800,801],{"class":241},"(router)\n",[232,803,804,806,808,810,812,814,816,818,820,823,825,828],{"class":234,"line":466},[232,805,793],{"class":241},[232,807,118],{"class":245},[232,809,798],{"class":238},[232,811,416],{"class":241},[232,813,469],{"class":372},[232,815,778],{"class":238},[232,817,416],{"class":241},[232,819,246],{"class":245},[232,821,822],{"class":241}," router ",[232,824,274],{"class":245},[232,826,827],{"class":241},"))   ",[232,829,831],{"class":830},"sHwdD","\u002F\u002F beforeResolve loads the page chunk\n",[106,833,834,835,590,838,841,842,590,845,848,849,852],{},"The locale, ",[110,836,837],{},"locales",[110,839,840],{},"defaultLocale"," and the named formats come from Rust. A\nfailed page load keeps what is shown and lets the navigation through. A locale set on the\ninstance (",[110,843,844],{},"useI18n().locale.value = 'de'",[110,846,847],{},"\u003CI18nSwitcher>",") goes to Rust like\n",[110,850,851],{},"link.setLocale","; the old texts stay until the new ones are in, and a locale Rust refuses\nputs the shown one back.",[854,855,856],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":228,"searchDepth":398,"depth":466,"links":858},[859,864],{"id":112,"depth":398,"text":112,"children":860},[861,862,863],{"id":219,"depth":466,"text":164},{"id":314,"depth":466,"text":197},{"id":514,"depth":466,"text":515},{"id":568,"depth":398,"text":571,"children":865},[866,867],{"id":701,"depth":466,"text":663},{"id":729,"depth":466,"text":689},"Every function tauri-plugin-i18n-next-api exports, generated from guest-js.","md",true,null,{},{"title":64,"description":868},"Tu1FilOhdMo3GCG-B2Rc0YdDyGFW1c13ikqQP1cXsUQ",[876,878],{"title":54,"path":55,"stem":56,"description":877,"children":-1},"check() for the catalog, typed keys, the CLI and tracing events.",{"title":68,"path":69,"stem":70,"description":879,"children":-1},"Types of tauri-plugin-i18n-next-api, generated from guest-js.",1794917565887]