[{"data":1,"prerenderedAt":1476},["ShallowReactive",2],{"navigation":3,"\u002Fguides\u002Fformats":100,"\u002Fguides\u002Fformats-surround":1471},[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":38,"body":102,"description":1465,"extension":1466,"generated":18,"links":1467,"meta":1468,"navigation":187,"path":39,"seo":1469,"stem":40,"__hash__":1470},"docs\u002F2.guides\u002F4.formats.md",{"type":103,"value":104,"toc":1459},"minimark",[105,134,139,461,469,497,661,680,684,1046,1124,1268,1287,1291,1333,1366,1370,1381,1439,1444,1455],[106,107,108,109,113,114,117,118,121,122,125,126,129,130,133],"p",{},"Formats need the ",[110,111,112],"code",{},"format"," feature (on by default). They follow ",[110,115,116],{},"Intl.NumberFormat",", ",[110,119,120],{},"Intl.DateTimeFormat"," and\n",[110,123,124],{},"Intl.RelativeTimeFormat",", with the locale's ",[110,127,128],{},"iso"," as the tag (else its code), as ",[110,131,132],{},"@i18n-micro\u002Fcore"," does.",[135,136,138],"h2",{"id":137},"numbers","Numbers",[140,141,146],"pre",{"className":142,"code":143,"language":144,"meta":145,"style":145},"language-rust shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use i18n_next::{I18n, t, tn};\n\nlet i18n = I18n::builder()\n    .config(\"i18n.json\")             \u002F\u002F numberFormats, locales[].iso\n    .formats(r#\"{\"en\": {\"short\": {\"notation\": \"compact\"}}}\"#)\n    .build()?;\ni18n.tn(1234567.891);                \u002F\u002F \"1,234,567.891\" in en, \"1 234 567,891\" in ru\ni18n.tn_as(1234.5, \"currency\");      \u002F\u002F a named format: \"$1,234.50\"\ni18n.text(\"total\").number(9.99);     \u002F\u002F {number} in a Text, as \u003Ci18n-t :number>\nt!(\"total\", @number = 9.99);         \u002F\u002F the same with the macro\ntn!(1234.5);                         \u002F\u002F the implicit instance\ni18n.language_name(\"de\");            \u002F\u002F Some(\"Deutsch\")\n","rust","",[110,147,148,182,189,216,243,268,279,307,342,382,418,437],{"__ignoreMap":145},[149,150,153,157,161,165,168,171,174,176,179],"span",{"class":151,"line":152},"line",1,[149,154,156],{"class":155},"sbssI","use",[149,158,160],{"class":159},"sBMFI"," i18n_next",[149,162,164],{"class":163},"sMK4o","::{",[149,166,167],{"class":159},"I18n",[149,169,170],{"class":163},",",[149,172,173],{"class":159}," t",[149,175,170],{"class":163},[149,177,178],{"class":159}," tn",[149,180,181],{"class":163},"};\n",[149,183,185],{"class":151,"line":184},2,[149,186,188],{"emptyLinePlaceholder":187},true,"\n",[149,190,192,196,200,203,206,209,213],{"class":151,"line":191},3,[149,193,195],{"class":194},"spNyl","let",[149,197,199],{"class":198},"sTEyZ"," i18n ",[149,201,202],{"class":163},"=",[149,204,205],{"class":159}," I18n",[149,207,208],{"class":163},"::",[149,210,212],{"class":211},"s2Zo4","builder",[149,214,215],{"class":163},"()\n",[149,217,219,222,225,228,231,234,236,239],{"class":151,"line":218},4,[149,220,221],{"class":163},"    .",[149,223,224],{"class":211},"config",[149,226,227],{"class":163},"(",[149,229,230],{"class":163},"\"",[149,232,88],{"class":233},"sfazB",[149,235,230],{"class":163},[149,237,238],{"class":163},")",[149,240,242],{"class":241},"sHwdD","             \u002F\u002F numberFormats, locales[].iso\n",[149,244,246,248,251,253,256,259,262,265],{"class":151,"line":245},5,[149,247,221],{"class":163},[149,249,250],{"class":211},"formats",[149,252,227],{"class":163},[149,254,255],{"class":233},"r",[149,257,258],{"class":163},"#\"",[149,260,261],{"class":233},"{\"en\": {\"short\": {\"notation\": \"compact\"}}}",[149,263,264],{"class":163},"\"#",[149,266,267],{"class":163},")\n",[149,269,271,273,276],{"class":151,"line":270},6,[149,272,221],{"class":163},[149,274,275],{"class":211},"build",[149,277,278],{"class":163},"()?;\n",[149,280,282,285,288,291,293,296,298,301,304],{"class":151,"line":281},7,[149,283,284],{"class":198},"i18n",[149,286,287],{"class":163},".",[149,289,290],{"class":211},"tn",[149,292,227],{"class":163},[149,294,295],{"class":155},"1234567",[149,297,287],{"class":163},[149,299,300],{"class":155},"891",[149,302,303],{"class":163},");",[149,305,306],{"class":241},"                \u002F\u002F \"1,234,567.891\" in en, \"1 234 567,891\" in ru\n",[149,308,310,312,314,317,319,322,324,327,329,332,335,337,339],{"class":151,"line":309},8,[149,311,284],{"class":198},[149,313,287],{"class":163},[149,315,316],{"class":211},"tn_as",[149,318,227],{"class":163},[149,320,321],{"class":155},"1234",[149,323,287],{"class":163},[149,325,326],{"class":155},"5",[149,328,170],{"class":163},[149,330,331],{"class":163}," \"",[149,333,334],{"class":233},"currency",[149,336,230],{"class":163},[149,338,303],{"class":163},[149,340,341],{"class":241},"      \u002F\u002F a named format: \"$1,234.50\"\n",[149,343,345,347,349,352,354,356,359,361,364,367,369,372,374,377,379],{"class":151,"line":344},9,[149,346,284],{"class":198},[149,348,287],{"class":163},[149,350,351],{"class":211},"text",[149,353,227],{"class":163},[149,355,230],{"class":163},[149,357,358],{"class":233},"total",[149,360,230],{"class":163},[149,362,363],{"class":163},").",[149,365,366],{"class":211},"number",[149,368,227],{"class":163},[149,370,371],{"class":155},"9",[149,373,287],{"class":163},[149,375,376],{"class":155},"99",[149,378,303],{"class":163},[149,380,381],{"class":241},"     \u002F\u002F {number} in a Text, as \u003Ci18n-t :number>\n",[149,383,385,388,390,392,394,396,398,401,404,406,409,411,413,415],{"class":151,"line":384},10,[149,386,387],{"class":211},"t!",[149,389,227],{"class":163},[149,391,230],{"class":163},[149,393,358],{"class":233},[149,395,230],{"class":163},[149,397,170],{"class":163},[149,399,400],{"class":163}," @",[149,402,403],{"class":198},"number ",[149,405,202],{"class":163},[149,407,408],{"class":155}," 9",[149,410,287],{"class":163},[149,412,376],{"class":155},[149,414,303],{"class":163},[149,416,417],{"class":241},"         \u002F\u002F the same with the macro\n",[149,419,421,424,426,428,430,432,434],{"class":151,"line":420},11,[149,422,423],{"class":211},"tn!",[149,425,227],{"class":163},[149,427,321],{"class":155},[149,429,287],{"class":163},[149,431,326],{"class":155},[149,433,303],{"class":163},[149,435,436],{"class":241},"                         \u002F\u002F the implicit instance\n",[149,438,440,442,444,447,449,451,454,456,458],{"class":151,"line":439},12,[149,441,284],{"class":198},[149,443,287],{"class":163},[149,445,446],{"class":211},"language_name",[149,448,227],{"class":163},[149,450,230],{"class":163},[149,452,453],{"class":233},"de",[149,455,230],{"class":163},[149,457,303],{"class":163},[149,459,460],{"class":241},"            \u002F\u002F Some(\"Deutsch\")\n",[106,462,463,465,466,287],{},[110,464,290],{}," takes any integer or float. A tag without data formats as ",[110,467,468],{},"en",[106,470,471,472,475,476,479,480,121,482,485,486,489,490,489,493,496],{},"Named formats are Vue I18n's ",[110,473,474],{},"numberFormats",": ",[110,477,478],{},"{\"\u003Clocale>\": {\"\u003Cname>\": {\u003CIntl options>}}}",", from ",[110,481,88],{},[110,483,484],{},"Builder::formats"," (a name given again wins). A name is looked up by the locale code, then shorter\n(",[110,487,488],{},"zh-Hant-TW"," → ",[110,491,492],{},"zh-Hant",[110,494,495],{},"zh","). An unknown name warns and formats with the defaults, as JS does.",[498,499,500,515],"table",{},[501,502,503],"thead",{},[504,505,506,512],"tr",{},[507,508,509,511],"th",{},[110,510,116],{}," option",[507,513,514],{},"Supported",[516,517,518,538,563,572,587,601,617,630],"tbody",{},[504,519,520,535],{},[521,522,523,117,526,117,529,117,532],"td",{},[110,524,525],{},"style: decimal",[110,527,528],{},"minimumFractionDigits",[110,530,531],{},"maximumFractionDigits",[110,533,534],{},"minimumIntegerDigits",[521,536,537],{},"yes",[504,539,540,561],{},[521,541,542,475,545,548,549,548,552,548,555,548,558],{},[110,543,544],{},"useGrouping",[110,546,547],{},"true"," \u002F ",[110,550,551],{},"false",[110,553,554],{},"\"always\"",[110,556,557],{},"\"auto\"",[110,559,560],{},"\"min2\"",[521,562,537],{},[504,564,565,570],{},[521,566,567],{},[110,568,569],{},"style: percent",[521,571,537],{},[504,573,574,585],{},[521,575,576,579,580,117,582],{},[110,577,578],{},"style: currency"," + ",[110,581,334],{},[110,583,584],{},"currencyDisplay: symbol \u002F narrowSymbol \u002F code",[521,586,537],{},[504,588,589,594],{},[521,590,591],{},[110,592,593],{},"currencyDisplay: name",[521,595,596,597,600],{},"with the ",[110,598,599],{},"currency-names"," feature",[504,602,603,615],{},[521,604,605,608,609,612,613],{},[110,606,607],{},"notation: compact"," (",[110,610,611],{},"compactDisplay: short",") with ",[110,614,525],{},[521,616,537],{},[504,618,619,628],{},[521,620,621,622,489,625,238],{},"the locale's default numbering system (",[110,623,624],{},"ar-EG",[110,626,627],{},"١٬٢٣٤",[521,629,537],{},[504,631,632,658],{},[521,633,634,117,637,640,641,117,644,647,648,117,651,654,655],{},[110,635,636],{},"style: unit",[110,638,639],{},"signDisplay"," other than ",[110,642,643],{},"auto",[110,645,646],{},"roundingMode",", significant digits, ",[110,649,650],{},"notation: scientific \u002F engineering",[110,652,653],{},"compactDisplay: long",", compact currency or percent, another ",[110,656,657],{},"numberingSystem",[521,659,660],{},"no",[106,662,663,664,667,668,671,672,675,676,679],{},"An unsupported option, or a value ",[110,665,666],{},"Intl"," rejects (",[110,669,670],{},"currency: \"usdx\"","), fails ",[110,673,674],{},"build()"," with\n",[110,677,678],{},"Error::UnsupportedFormat",". Unknown keys are ignored.",[135,681,683],{"id":682},"dates-and-relative-time","Dates and relative time",[140,685,687],{"className":142,"code":686,"language":144,"meta":145,"style":145},"use i18n_next::{I18n, RelativeOptions, t, td, tdr};\n\nlet i18n = I18n::builder()\n    .config(\"i18n.json\")                          \u002F\u002F datetimeFormats, locales[].iso\n    .datetime_formats(r#\"{\"en\": {\"long\": {\"dateStyle\": \"full\", \"timeStyle\": \"short\"}}}\"#)\n    .time_zone(\"Europe\u002FBerlin\")                   \u002F\u002F default: the system zone\n    .build()?;\nlet at = 1_704_428_640_000i64;                    \u002F\u002F ms since 1970, as a JS Date holds it\ni18n.td(at);                                      \u002F\u002F \"1\u002F5\u002F2024\"; ru \"05.01.2024\"\ni18n.td_as(at, \"long\");                           \u002F\u002F \"Friday, January 5, 2024 at 5:24 AM\"\ni18n.tdr(at - 3 * 86_400_000);                    \u002F\u002F \"3 days ago\"\ni18n.tdr_with(at - 86_400_000, RelativeOptions::default().auto());  \u002F\u002F \"yesterday\"\ni18n.text(\"due\").date(at);                        \u002F\u002F {date} in a Text, as \u003Ci18n-t :date>\nt!(\"seen\", @relative = at);                       \u002F\u002F {relativeDate}, as \u003Ci18n-t :relative-date>\ntd!(at); td!(at, \"long\"); tdr!(at);               \u002F\u002F the implicit instance\n",[110,688,689,720,724,740,759,779,800,808,829,847,874,905,942,974,1005],{"__ignoreMap":145},[149,690,691,693,695,697,699,701,704,706,708,710,713,715,718],{"class":151,"line":152},[149,692,156],{"class":155},[149,694,160],{"class":159},[149,696,164],{"class":163},[149,698,167],{"class":159},[149,700,170],{"class":163},[149,702,703],{"class":159}," RelativeOptions",[149,705,170],{"class":163},[149,707,173],{"class":159},[149,709,170],{"class":163},[149,711,712],{"class":159}," td",[149,714,170],{"class":163},[149,716,717],{"class":159}," tdr",[149,719,181],{"class":163},[149,721,722],{"class":151,"line":184},[149,723,188],{"emptyLinePlaceholder":187},[149,725,726,728,730,732,734,736,738],{"class":151,"line":191},[149,727,195],{"class":194},[149,729,199],{"class":198},[149,731,202],{"class":163},[149,733,205],{"class":159},[149,735,208],{"class":163},[149,737,212],{"class":211},[149,739,215],{"class":163},[149,741,742,744,746,748,750,752,754,756],{"class":151,"line":218},[149,743,221],{"class":163},[149,745,224],{"class":211},[149,747,227],{"class":163},[149,749,230],{"class":163},[149,751,88],{"class":233},[149,753,230],{"class":163},[149,755,238],{"class":163},[149,757,758],{"class":241},"                          \u002F\u002F datetimeFormats, locales[].iso\n",[149,760,761,763,766,768,770,772,775,777],{"class":151,"line":245},[149,762,221],{"class":163},[149,764,765],{"class":211},"datetime_formats",[149,767,227],{"class":163},[149,769,255],{"class":233},[149,771,258],{"class":163},[149,773,774],{"class":233},"{\"en\": {\"long\": {\"dateStyle\": \"full\", \"timeStyle\": \"short\"}}}",[149,776,264],{"class":163},[149,778,267],{"class":163},[149,780,781,783,786,788,790,793,795,797],{"class":151,"line":270},[149,782,221],{"class":163},[149,784,785],{"class":211},"time_zone",[149,787,227],{"class":163},[149,789,230],{"class":163},[149,791,792],{"class":233},"Europe\u002FBerlin",[149,794,230],{"class":163},[149,796,238],{"class":163},[149,798,799],{"class":241},"                   \u002F\u002F default: the system zone\n",[149,801,802,804,806],{"class":151,"line":281},[149,803,221],{"class":163},[149,805,275],{"class":211},[149,807,278],{"class":163},[149,809,810,812,815,817,820,823,826],{"class":151,"line":309},[149,811,195],{"class":194},[149,813,814],{"class":198}," at ",[149,816,202],{"class":163},[149,818,819],{"class":155}," 1_704_428_640_000",[149,821,822],{"class":159},"i64",[149,824,825],{"class":163},";",[149,827,828],{"class":241},"                    \u002F\u002F ms since 1970, as a JS Date holds it\n",[149,830,831,833,835,837,839,842,844],{"class":151,"line":344},[149,832,284],{"class":198},[149,834,287],{"class":163},[149,836,521],{"class":211},[149,838,227],{"class":163},[149,840,841],{"class":198},"at",[149,843,303],{"class":163},[149,845,846],{"class":241},"                                      \u002F\u002F \"1\u002F5\u002F2024\"; ru \"05.01.2024\"\n",[149,848,849,851,853,856,858,860,862,864,867,869,871],{"class":151,"line":384},[149,850,284],{"class":198},[149,852,287],{"class":163},[149,854,855],{"class":211},"td_as",[149,857,227],{"class":163},[149,859,841],{"class":198},[149,861,170],{"class":163},[149,863,331],{"class":163},[149,865,866],{"class":233},"long",[149,868,230],{"class":163},[149,870,303],{"class":163},[149,872,873],{"class":241},"                           \u002F\u002F \"Friday, January 5, 2024 at 5:24 AM\"\n",[149,875,876,878,880,883,885,888,891,894,897,900,902],{"class":151,"line":420},[149,877,284],{"class":198},[149,879,287],{"class":163},[149,881,882],{"class":211},"tdr",[149,884,227],{"class":163},[149,886,887],{"class":198},"at ",[149,889,890],{"class":163},"-",[149,892,893],{"class":155}," 3",[149,895,896],{"class":163}," *",[149,898,899],{"class":155}," 86_400_000",[149,901,303],{"class":163},[149,903,904],{"class":241},"                    \u002F\u002F \"3 days ago\"\n",[149,906,907,909,911,914,916,918,920,922,924,926,928,931,934,936,939],{"class":151,"line":439},[149,908,284],{"class":198},[149,910,287],{"class":163},[149,912,913],{"class":211},"tdr_with",[149,915,227],{"class":163},[149,917,887],{"class":198},[149,919,890],{"class":163},[149,921,899],{"class":155},[149,923,170],{"class":163},[149,925,703],{"class":159},[149,927,208],{"class":163},[149,929,930],{"class":211},"default",[149,932,933],{"class":163},"().",[149,935,643],{"class":211},[149,937,938],{"class":163},"());",[149,940,941],{"class":241},"  \u002F\u002F \"yesterday\"\n",[149,943,945,947,949,951,953,955,958,960,962,965,967,969,971],{"class":151,"line":944},13,[149,946,284],{"class":198},[149,948,287],{"class":163},[149,950,351],{"class":211},[149,952,227],{"class":163},[149,954,230],{"class":163},[149,956,957],{"class":233},"due",[149,959,230],{"class":163},[149,961,363],{"class":163},[149,963,964],{"class":211},"date",[149,966,227],{"class":163},[149,968,841],{"class":198},[149,970,303],{"class":163},[149,972,973],{"class":241},"                        \u002F\u002F {date} in a Text, as \u003Ci18n-t :date>\n",[149,975,977,979,981,983,986,988,990,992,995,997,1000,1002],{"class":151,"line":976},14,[149,978,387],{"class":211},[149,980,227],{"class":163},[149,982,230],{"class":163},[149,984,985],{"class":233},"seen",[149,987,230],{"class":163},[149,989,170],{"class":163},[149,991,400],{"class":163},[149,993,994],{"class":198},"relative ",[149,996,202],{"class":163},[149,998,999],{"class":198}," at",[149,1001,303],{"class":163},[149,1003,1004],{"class":241},"                       \u002F\u002F {relativeDate}, as \u003Ci18n-t :relative-date>\n",[149,1006,1008,1011,1013,1015,1017,1020,1022,1024,1026,1028,1030,1032,1034,1037,1039,1041,1043],{"class":151,"line":1007},15,[149,1009,1010],{"class":211},"td!",[149,1012,227],{"class":163},[149,1014,841],{"class":198},[149,1016,303],{"class":163},[149,1018,1019],{"class":211}," td!",[149,1021,227],{"class":163},[149,1023,841],{"class":198},[149,1025,170],{"class":163},[149,1027,331],{"class":163},[149,1029,866],{"class":233},[149,1031,230],{"class":163},[149,1033,303],{"class":163},[149,1035,1036],{"class":211}," tdr!",[149,1038,227],{"class":163},[149,1040,841],{"class":198},[149,1042,303],{"class":163},[149,1044,1045],{"class":241},"               \u002F\u002F the implicit instance\n",[1047,1048,1049,1073,1079,1084,1094],"ul",{},[1050,1051,1052,1054,1055,1057,1058,1061,1062,1065,1066,1069,1070,287],"li",{},[110,1053,521],{}," takes milliseconds (",[110,1056,822],{}," or ",[110,1059,1060],{},"f64",") or a ",[110,1063,1064],{},"SystemTime","; with the ",[110,1067,1068],{},"time"," feature also its date\ntypes. A value JS cannot hold shows ",[110,1071,1072],{},"Invalid Date",[1050,1074,1075,1076,1078],{},"Without options ",[110,1077,521],{}," shows year, month and day, numeric, in the instance's zone.",[1050,1080,1081,1083],{},[110,1082,882],{}," uses the largest unit that fits at least once (a year is 365 days, a month 30, no weeks), rounded down.",[1050,1085,471,1086,1089,1090,1093],{},[110,1087,1088],{},"datetimeFormats",", looked up like number formats. A format's own ",[110,1091,1092],{},"timeZone"," wins\nover the instance's.",[1050,1095,1096,1097,117,1099,117,1102,117,1105,1108,1109,1112,1113,1116,1117,1119,1120,1123],{},"Dates are Gregorian. For ",[110,1098,507],{},[110,1100,1101],{},"fa",[110,1103,1104],{},"fa-AF",[110,1106,1107],{},"ps"," and ",[110,1110,1111],{},"shn-TH"," add ",[110,1114,1115],{},"-u-ca-gregory"," to their ",[110,1118,128],{},"\n(",[110,1121,1122],{},"th-u-ca-gregory",") so the frontend shows Gregorian dates too.",[498,1125,1126,1135],{},[501,1127,1128],{},[504,1129,1130,1133],{},[507,1131,1132],{},"Option",[507,1134,514],{},[516,1136,1137,1163,1191,1203,1216,1231,1246],{},[504,1138,1139,1161],{},[521,1140,1141,608,1144,1147,1148,1151,1152,608,1155,117,1158,1160],{},[110,1142,1143],{},"dateStyle",[110,1145,1146],{},"full"," … ",[110,1149,1150],{},"short","), ",[110,1153,1154],{},"timeStyle",[110,1156,1157],{},"medium",[110,1159,1150],{},"), both together",[521,1162,537],{},[504,1164,1165,1189],{},[521,1166,1167,117,1170,117,1173,117,1176,117,1179,117,1182,117,1185,1188],{},[110,1168,1169],{},"weekday",[110,1171,1172],{},"year",[110,1174,1175],{},"month",[110,1177,1178],{},"day",[110,1180,1181],{},"hour",[110,1183,1184],{},"minute",[110,1186,1187],{},"second",", any combination",[521,1190,537],{},[504,1192,1193,1201],{},[521,1194,1195,117,1198],{},[110,1196,1197],{},"hour12",[110,1199,1200],{},"hourCycle",[521,1202,537],{},[504,1204,1205,1210],{},[521,1206,1207,1209],{},[110,1208,1092],{}," (IANA)",[521,1211,1212,1213,600],{},"yes; only UTC without the ",[110,1214,1215],{},"tz",[504,1217,1218,1229],{},[521,1219,1220,117,1223,117,1226],{},[110,1221,1222],{},"calendar: \"gregory\"",[110,1224,1225],{},"localeMatcher",[110,1227,1228],{},"formatMatcher",[521,1230,537],{},[504,1232,1233,1244],{},[521,1234,994,1235,117,1238,608,1241,238],{},[110,1236,1237],{},"numeric: always \u002F auto",[110,1239,1240],{},"style: long \u002F short \u002F narrow",[110,1242,1243],{},"RelativeOptions",[521,1245,537],{},[504,1247,1248,1266],{},[521,1249,1250,117,1253,117,1256,117,1259,117,1262,1265],{},[110,1251,1252],{},"timeStyle: full \u002F long",[110,1254,1255],{},"timeZoneName",[110,1257,1258],{},"era",[110,1260,1261],{},"dayPeriod",[110,1263,1264],{},"fractionalSecondDigits",", other calendars",[521,1267,660],{},[106,1269,1270,1271,1273,1274,1276,1277,1279,1280,1283,1284,287],{},"An unsupported option or a value ",[110,1272,666],{}," rejects fails ",[110,1275,674],{}," with ",[110,1278,678],{},"; an unknown zone in\n",[110,1281,1282],{},"Builder::time_zone"," fails with ",[110,1285,1286],{},"Error::UnknownTimeZone",[135,1288,1290],{"id":1289},"time-zones-and-the-clock","Time zones and the clock",[140,1292,1294],{"className":142,"code":1293,"language":144,"meta":145,"style":145},"I18n::builder().time_zone(\"Europe\u002FBerlin\").clock(|| now_ms).build()?;\n",[110,1295,1296],{"__ignoreMap":145},[149,1297,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1321,1324,1327,1329,1331],{"class":151,"line":152},[149,1299,167],{"class":159},[149,1301,208],{"class":163},[149,1303,212],{"class":211},[149,1305,933],{"class":163},[149,1307,785],{"class":211},[149,1309,227],{"class":163},[149,1311,230],{"class":163},[149,1313,792],{"class":233},[149,1315,230],{"class":163},[149,1317,363],{"class":163},[149,1319,1320],{"class":211},"clock",[149,1322,1323],{"class":163},"(||",[149,1325,1326],{"class":198}," now_ms",[149,1328,363],{"class":163},[149,1330,275],{"class":211},[149,1332,278],{"class":163},[1047,1334,1335,1345,1351],{},[1050,1336,1337,1338,1340,1341,287],{},"The zone is ",[110,1339,785],{}," when set, else the system's. Where the system zone comes from on each platform:\n",[1342,1343,92],"a",{"href":1344},"\u002Fplatforms#time-zones",[1050,1346,1347,1350],{},[110,1348,1349],{},"set_system_time_zone(name)"," sets the system zone by name, once, before the first date. The Tauri plugin does\nthis with the WebView's zone.",[1050,1352,1353,1355,1356,1358,1359,1362,1363,287],{},[110,1354,1320],{}," is \"now\" for ",[110,1357,882],{},", in milliseconds (JS ",[110,1360,1361],{},"FormatService({ now })","). Fix it in tests, or give the client\nthe server's time. By default the system clock; in the browser ",[110,1364,1365],{},"Date.now()",[135,1367,1369],{"id":1368},"locale-data","Locale data",[106,1371,1372,1373,1376,1377,1380],{},"The number and date data are built into the binary. By default that is the CLDR ",[110,1374,1375],{},"modern"," locales. Set\n",[110,1378,1379],{},"I18N_NEXT_LOCALES"," at build time to keep only the locales you ship:",[140,1382,1386],{"className":1383,"code":1384,"language":1385,"meta":145,"style":145},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","I18N_NEXT_LOCALES=en,de,ru cargo build --release   # these, their parents (de-CH brings de) and en\nI18N_NEXT_LOCALES=all cargo build --release        # every locale\ncargo build --release                              # unset or `modern`: the CLDR modern locales\n","sh",[110,1387,1388,1409,1427],{"__ignoreMap":145},[149,1389,1390,1392,1394,1397,1400,1403,1406],{"class":151,"line":152},[149,1391,1379],{"class":198},[149,1393,202],{"class":163},[149,1395,1396],{"class":233},"en,de,ru",[149,1398,1399],{"class":159}," cargo",[149,1401,1402],{"class":233}," build",[149,1404,1405],{"class":233}," --release",[149,1407,1408],{"class":241},"   # these, their parents (de-CH brings de) and en\n",[149,1410,1411,1413,1415,1418,1420,1422,1424],{"class":151,"line":184},[149,1412,1379],{"class":198},[149,1414,202],{"class":163},[149,1416,1417],{"class":233},"all",[149,1419,1399],{"class":159},[149,1421,1402],{"class":233},[149,1423,1405],{"class":233},[149,1425,1426],{"class":241},"        # every locale\n",[149,1428,1429,1432,1434,1436],{"class":151,"line":191},[149,1430,1431],{"class":159},"cargo",[149,1433,1402],{"class":233},[149,1435,1405],{"class":233},[149,1437,1438],{"class":241},"                              # unset or `modern`: the CLDR modern locales\n",[106,1440,1441,1442,287],{},"A tag with no data fails the build. A locale left out formats as its nearest selected parent, else ",[110,1443,468],{},[106,1445,1446,1448,1449,1451,1452,1454],{},[110,1447,599],{}," (off by default) adds the currency names for ",[110,1450,593],{},". The data is large: pick the\nlocales with ",[110,1453,1379],{}," when you turn it on.",[1456,1457,1458],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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}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);}",{"title":145,"searchDepth":184,"depth":191,"links":1460},[1461,1462,1463,1464],{"id":137,"depth":184,"text":138},{"id":682,"depth":184,"text":683},{"id":1289,"depth":184,"text":1290},{"id":1368,"depth":184,"text":1369},"Numbers, dates, relative time, named formats, time zones, the clock and I18N_NEXT_LOCALES.","md",null,{},{"title":38,"description":1465},"C8y7fdWqxqzlCwb_Rh6AeMNlPHF_ruAGNowwedWqzQY",[1472,1474],{"title":34,"path":35,"stem":36,"description":1473,"children":-1},"@:key references with upper, lower and capitalize modifiers.",{"title":42,"path":43,"stem":44,"description":1475,"children":-1},"dir, lazy_dir, files, lazy_files, messages, remote with ensure_async, extend for libraries, eviction, reload, subscribe and watch.",1794917566433]