@ethnolib/language-chooser-react-mui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/index.mjs +21 -16
- package/messages-BPdITIAK.js +1 -0
- package/messages-bT2Qnkqv.mjs +4 -0
- package/package.json +3 -3
- package/messages-AHGmSBNt.js +0 -1
- package/messages-C_n_9PID.mjs +0 -4
package/index.js
CHANGED
@@ -258,7 +258,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
258
258
|
ICU features such as interpolation and plurals will not work properly for that message.
|
259
259
|
|
260
260
|
Please compile your catalog first.
|
261
|
-
`)),Ze(d)&&$c.test(d)?JSON.parse(`"${d}"`):Ze(d)?d:jI(d,this._locale,this._locales)(i,s==null?void 0:s.formats)}date(t,i){return Kl(this._locales||this._locale,t,i)}number(t,i){return ll(this._locales||this._locale,t,i)}}function HI(n={}){return new RI(n)}const It=HI(),cL=["ar","az","bn","de","en","es","fa","fr","hi","hu","id","km","ko","ms","my","ne","pt","ru","rw","sw","ta","te","th","tp","tr","ur","vi","zh"];async function OI(n){let t=XI(n);try{const{messages:i}=await mI(Object.assign({"../../../../locales/ar/messages.ts":()=>Promise.resolve().then(()=>require("./messages-AmEVAyNh.js")),"../../../../locales/az/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DebqKxHl.js")),"../../../../locales/bn/messages.ts":()=>Promise.resolve().then(()=>require("./messages-kwWBrKz5.js")),"../../../../locales/de/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DG2Rn3jd.js")),"../../../../locales/en/messages.ts":()=>Promise.resolve().then(()=>require("./messages-C62ehiUp.js")),"../../../../locales/es/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DRGnsybx.js")),"../../../../locales/fa/messages.ts":()=>Promise.resolve().then(()=>require("./messages-CmutKj3u.js")),"../../../../locales/fr/messages.ts":()=>Promise.resolve().then(()=>require("./messages-
|
261
|
+
`)),Ze(d)&&$c.test(d)?JSON.parse(`"${d}"`):Ze(d)?d:jI(d,this._locale,this._locales)(i,s==null?void 0:s.formats)}date(t,i){return Kl(this._locales||this._locale,t,i)}number(t,i){return ll(this._locales||this._locale,t,i)}}function HI(n={}){return new RI(n)}const It=HI(),cL=["ar","az","bn","de","en","es","fa","fr","hi","hu","id","km","ko","ms","my","ne","pt","ru","rw","sw","ta","te","th","tp","tr","ur","vi","zh"];async function OI(n){let t=XI(n);try{const{messages:i}=await mI(Object.assign({"../../../../locales/ar/messages.ts":()=>Promise.resolve().then(()=>require("./messages-AmEVAyNh.js")),"../../../../locales/az/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DebqKxHl.js")),"../../../../locales/bn/messages.ts":()=>Promise.resolve().then(()=>require("./messages-kwWBrKz5.js")),"../../../../locales/de/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DG2Rn3jd.js")),"../../../../locales/en/messages.ts":()=>Promise.resolve().then(()=>require("./messages-C62ehiUp.js")),"../../../../locales/es/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DRGnsybx.js")),"../../../../locales/fa/messages.ts":()=>Promise.resolve().then(()=>require("./messages-CmutKj3u.js")),"../../../../locales/fr/messages.ts":()=>Promise.resolve().then(()=>require("./messages-BPdITIAK.js")),"../../../../locales/hi/messages.ts":()=>Promise.resolve().then(()=>require("./messages-RDMCkdN0.js")),"../../../../locales/hu/messages.ts":()=>Promise.resolve().then(()=>require("./messages-mm8UP9ko.js")),"../../../../locales/id/messages.ts":()=>Promise.resolve().then(()=>require("./messages-Bo3Zsw4E.js")),"../../../../locales/km/messages.ts":()=>Promise.resolve().then(()=>require("./messages-BXtohvbP.js")),"../../../../locales/ko/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DW8V1cEu.js")),"../../../../locales/ms/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DlKaXWvk.js")),"../../../../locales/my/messages.ts":()=>Promise.resolve().then(()=>require("./messages-Zoyja6_9.js")),"../../../../locales/ne/messages.ts":()=>Promise.resolve().then(()=>require("./messages-CFYGm7qO.js")),"../../../../locales/pt/messages.ts":()=>Promise.resolve().then(()=>require("./messages-bFYEzHSM.js")),"../../../../locales/ru/messages.ts":()=>Promise.resolve().then(()=>require("./messages-RgoP-jHJ.js")),"../../../../locales/rw/messages.ts":()=>Promise.resolve().then(()=>require("./messages-ZWj-BTEt.js")),"../../../../locales/sw/messages.ts":()=>Promise.resolve().then(()=>require("./messages-gMAM-s8a.js")),"../../../../locales/ta/messages.ts":()=>Promise.resolve().then(()=>require("./messages-PhICpnC4.js")),"../../../../locales/te/messages.ts":()=>Promise.resolve().then(()=>require("./messages-h8j7FWBD.js")),"../../../../locales/th/messages.ts":()=>Promise.resolve().then(()=>require("./messages-WIoVuH07.js")),"../../../../locales/tp/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DLzDbP12.js")),"../../../../locales/tr/messages.ts":()=>Promise.resolve().then(()=>require("./messages-BUDgQGFa.js")),"../../../../locales/ur/messages.ts":()=>Promise.resolve().then(()=>require("./messages-Dqui_cPN.js")),"../../../../locales/vi/messages.ts":()=>Promise.resolve().then(()=>require("./messages-DwJcyRm0.js")),"../../../../locales/zh/messages.ts":()=>Promise.resolve().then(()=>require("./messages-B73rOlLK.js"))}),`../../../../locales/${t}/messages.ts`,7);if(!i)throw new Error(`No messages found for locale "${t}"`);It.load(t,i),It.activate(t)}catch(i){if(console.error(`Failed to load messages for locale "${t}":`,i),t!=="en"){t="en",console.log("Falling back to English locale");try{const{messages:s}=await Promise.resolve().then(()=>require("./messages-C62ehiUp.js"));s&&(It.load("en",s),It.activate("en"))}catch(s){console.error("Failed to load English messages:",s)}}}return It}function XI(n){if(cL.includes(n))return n;const t=n.split("-")[0];return cL.includes(t)?(console.log(`Using base locale "${t}" for region-specific locale "${n}"`),t):(console.log(`Locale "${n}" not available; falling back to English`),"en")}const YI=({locale:n,children:t})=>{const[i,s]=ha.useState(!1),o=n||WI();return ha.useEffect(()=>{(async()=>{await OI(o),s(!0)})()},[o]),i?Tn.jsx(qv,{i18n:It,children:t}):null};function WI(){var t;return typeof window>"u"?"en":((t=navigator.languages)==null?void 0:t[0])||navigator.language||navigator.userLanguage||navigator.browserLanguage||"en"}const FI={h1:{fontSize:"1.25rem",fontWeight:600,lineHeight:1.6,letterSpacing:"0.0075em"},h2:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},subtitle1:{fontSize:"0.75rem",lineHeight:1.167,letterSpacing:"0.001em"},body2:{fontFamily:"Roboto Mono, monospace",fontSize:"0.875rem",letterSpacing:"0.05rem"}},Eo="90px",VI=n=>H(YI,{locale:n.uiLanguage,children:H(ny,{...n})}),ny=n=>{var Ia,Ga;const{i18n:t,_:i}=cl(),s=z3(n.onSelectionChange,n.searchResultModifier),[o,r]=ha.useState(!1);ha.useEffect(()=>{p&&(p.value=n.initialSearchString||"",p.focus()),n.initialSearchString&&r(!0),setTimeout(()=>{s.resetTo(n.initialSearchString||"",n.initialSelectionLanguageTag,n.initialCustomDisplayName),r(!1)},0)},[]);const[m,L]=ha.useState(!1),[d,h]=ha.useState(!n.initialSearchString);ha.useEffect(()=>{d&&(s.searchString||m)&&h(!1)},[s.searchString,m]);const[T,x]=ha.useState(!!n.initialSelectionLanguageTag),v=ha.useRef(null);ha.useEffect(()=>{var W;T&&n.initialSelectionLanguageTag&&v.current&&((W=v.current)==null||W.scrollIntoView({block:"center"}),x(!1))},[v.current,T,n.initialSelectionLanguageTag]);const w=ha.useRef(null);ha.useEffect(()=>{var W;(W=w.current)==null||W.scrollTo(0,0)},[s.languageResults]);const M=ng({language:s.selectedLanguage,script:s.selectedScript,customDetails:s.selectedLanguage?s.customizableLanguageDetails:{dialect:s.searchString}});let p=null;const G=()=>{p&&(p.value=""),s.onSearchStringChange(""),p==null||p.focus()},K=ta.useTheme(),O=ta.createTheme({...K,typography:FI});function E(W){var k;te(W.iso639_3_code,(k=s.selectedLanguage)==null?void 0:k.iso639_3_code)?s.clearLanguageSelection():s.selectLanguage(W)}function X(W){var k;te(W.code,(k=s.selectedScript)==null?void 0:k.code)?s.clearScriptSelection():s.selectScript(W)}const S=!s.selectedLanguage||xi(s.selectedLanguage),V=ag(s.selectedLanguage);function q(W,k){const A=window.prompt(t._({id:"jROyBC"}),W);if(!(A===null||k&&A.length===0)){if(A&&!Dc(A)){alert(t._({id:"s/2hiv",values:{customTag:A}}));return}G(),L(!1),A.length>0&&s.selectManuallyEnteredTagLanguage(A)}}return ha.useEffect(()=>{v.current&&s.selectedLanguage&&v.current.scrollIntoView({behavior:"smooth",block:"start"})},[s.selectedLanguage]),H(Q.ThemeProvider,{theme:O,children:Ha(ta.ScopedCssBaseline,{css:Q.css`
|
262
262
|
height: 100%;
|
263
263
|
`,children:[Ha("div",{id:"lang-chooser-body",css:Q.css`
|
264
264
|
flex-grow: 1;
|
@@ -369,4 +369,4 @@ Please compile your catalog first.
|
|
369
369
|
font-weight: 700;
|
370
370
|
`,id:"language-name-bar",size:"small",fullWidth:!0,value:s.customizableLanguageDetails.customDisplayName!==void 0?s.customizableLanguageDetails.customDisplayName:eg(s.selectedLanguage,s.selectedScript),onChange:W=>{s.saveLanguageDetails({...s.customizableLanguageDetails,customDisplayName:W.target.value},s.selectedScript)}}),H(ta.Typography,{variant:"body2","data-testid":"right-panel-langtag-preview",css:Q.css`
|
371
371
|
color: ${O.palette.grey[700]};
|
372
|
-
`,children:M})]}),n.actionButtons]})]})]}),H(O3,{open:m,selectedLanguage:s.selectedLanguage,selectedScript:s.selectedScript,customizableLanguageDetails:s.customizableLanguageDetails,saveLanguageDetails:s.saveLanguageDetails,selectUnlistedLanguage:s.selectUnlistedLanguage,promptForManualTagEntry:q,searchString:s.searchString,onClose:()=>L(!1)},((Ia=s.selectedLanguage)==null?void 0:Ia.iso639_3)+"_"+((Ga=s.selectedScript)==null?void 0:Ga.code))]})})};exports.LanguageChooser=
|
372
|
+
`,children:M})]}),n.actionButtons]})]})]}),H(O3,{open:m,selectedLanguage:s.selectedLanguage,selectedScript:s.selectedScript,customizableLanguageDetails:s.customizableLanguageDetails,saveLanguageDetails:s.saveLanguageDetails,selectUnlistedLanguage:s.selectUnlistedLanguage,promptForManualTagEntry:q,searchString:s.searchString,onClose:()=>L(!1)},((Ia=s.selectedLanguage)==null?void 0:Ia.iso639_3)+"_"+((Ga=s.selectedScript)==null?void 0:Ga.code))]})})};exports.LanguageChooser=VI;exports.LanguageChooserInner=ny;exports.createTagFromOrthography=ng;exports.defaultDisplayName=eg;exports.defaultRegionForLangTag=D3;exports.defaultSearchResultModifier=_3;exports.isUnlistedLanguage=xi;exports.parseLangtagFromLangChooser=Ds;
|
package/index.mjs
CHANGED
@@ -310945,7 +310945,7 @@ function Ts(n, t, i, s) {
|
|
310945
310945
|
}
|
310946
310946
|
return s;
|
310947
310947
|
}
|
310948
|
-
function
|
310948
|
+
function KM(n, t) {
|
310949
310949
|
let i = qc(L3(n));
|
310950
310950
|
return i = Ts([
|
310951
310951
|
"english"
|
@@ -314518,7 +314518,7 @@ function rl(n, t) {
|
|
314518
314518
|
}
|
314519
314519
|
};
|
314520
314520
|
}
|
314521
|
-
function
|
314521
|
+
function ZM(n, t) {
|
314522
314522
|
var L, d, h, T;
|
314523
314523
|
const i = rl(n, t);
|
314524
314524
|
if ((L = i == null ? void 0 : i.customDetails) != null && L.region)
|
@@ -316634,7 +316634,7 @@ const Ct = IM(), kL = [
|
|
316634
316634
|
async function MM(n) {
|
316635
316635
|
let t = CM(n);
|
316636
316636
|
try {
|
316637
|
-
const { messages: i } = await YI(/* @__PURE__ */ Object.assign({ "../../../../locales/ar/messages.ts": () => import("./messages-DoWwE48_.mjs"), "../../../../locales/az/messages.ts": () => import("./messages-CjZJxOpG.mjs"), "../../../../locales/bn/messages.ts": () => import("./messages-rvw6IvQz.mjs"), "../../../../locales/de/messages.ts": () => import("./messages-DAf9Sqdz.mjs"), "../../../../locales/en/messages.ts": () => import("./messages-CGMdZ8nc.mjs"), "../../../../locales/es/messages.ts": () => import("./messages-PNmhVZS7.mjs"), "../../../../locales/fa/messages.ts": () => import("./messages-CpCfp0Xv.mjs"), "../../../../locales/fr/messages.ts": () => import("./messages-
|
316637
|
+
const { messages: i } = await YI(/* @__PURE__ */ Object.assign({ "../../../../locales/ar/messages.ts": () => import("./messages-DoWwE48_.mjs"), "../../../../locales/az/messages.ts": () => import("./messages-CjZJxOpG.mjs"), "../../../../locales/bn/messages.ts": () => import("./messages-rvw6IvQz.mjs"), "../../../../locales/de/messages.ts": () => import("./messages-DAf9Sqdz.mjs"), "../../../../locales/en/messages.ts": () => import("./messages-CGMdZ8nc.mjs"), "../../../../locales/es/messages.ts": () => import("./messages-PNmhVZS7.mjs"), "../../../../locales/fa/messages.ts": () => import("./messages-CpCfp0Xv.mjs"), "../../../../locales/fr/messages.ts": () => import("./messages-bT2Qnkqv.mjs"), "../../../../locales/hi/messages.ts": () => import("./messages-BU5Wb01i.mjs"), "../../../../locales/hu/messages.ts": () => import("./messages-YMIBlpEy.mjs"), "../../../../locales/id/messages.ts": () => import("./messages-BitVHANY.mjs"), "../../../../locales/km/messages.ts": () => import("./messages-BD8Z6Mlt.mjs"), "../../../../locales/ko/messages.ts": () => import("./messages-Tua_7bbR.mjs"), "../../../../locales/ms/messages.ts": () => import("./messages-gSaOZpeD.mjs"), "../../../../locales/my/messages.ts": () => import("./messages-CIKRe5jz.mjs"), "../../../../locales/ne/messages.ts": () => import("./messages-Cc3Jbklc.mjs"), "../../../../locales/pt/messages.ts": () => import("./messages-Cuh_ZKuC.mjs"), "../../../../locales/ru/messages.ts": () => import("./messages-BlRnfq58.mjs"), "../../../../locales/rw/messages.ts": () => import("./messages-DnlPM5eM.mjs"), "../../../../locales/sw/messages.ts": () => import("./messages-Os_jtpSd.mjs"), "../../../../locales/ta/messages.ts": () => import("./messages-DsypxWOZ.mjs"), "../../../../locales/te/messages.ts": () => import("./messages-Bp5detoB.mjs"), "../../../../locales/th/messages.ts": () => import("./messages-9rpjSkdN.mjs"), "../../../../locales/tp/messages.ts": () => import("./messages-BY65rqxJ.mjs"), "../../../../locales/tr/messages.ts": () => import("./messages-MD3mVVdM.mjs"), "../../../../locales/ur/messages.ts": () => import("./messages-Cq0UCLEp.mjs"), "../../../../locales/vi/messages.ts": () => import("./messages-Coan-YWw.mjs"), "../../../../locales/zh/messages.ts": () => import("./messages-LfRNKjfE.mjs") }), `../../../../locales/${t}/messages.ts`, 7);
|
316638
316638
|
if (!i)
|
316639
316639
|
throw new Error(`No messages found for locale "${t}"`);
|
316640
316640
|
Ct.load(t, i), Ct.activate(t);
|
@@ -316657,19 +316657,24 @@ function CM(n) {
|
|
316657
316657
|
const t = n.split("-")[0];
|
316658
316658
|
return kL.includes(t) ? (console.log(`Using base locale "${t}" for region-specific locale "${n}"`), t) : (console.log(`Locale "${n}" not available; falling back to English`), "en");
|
316659
316659
|
}
|
316660
|
-
const GM = ({ locale: n
|
316661
|
-
const [i, s] = me(!1);
|
316660
|
+
const GM = ({ locale: n, children: t }) => {
|
316661
|
+
const [i, s] = me(!1), o = n || fM();
|
316662
316662
|
return tt(() => {
|
316663
316663
|
(async () => {
|
316664
|
-
await MM(
|
316664
|
+
await MM(o), s(!0);
|
316665
316665
|
})();
|
316666
316666
|
}, [
|
316667
|
-
|
316667
|
+
o
|
316668
316668
|
]), i ? /* @__PURE__ */ ot(Ik, {
|
316669
316669
|
i18n: Ct,
|
316670
316670
|
children: t
|
316671
316671
|
}) : null;
|
316672
|
-
}
|
316672
|
+
};
|
316673
|
+
function fM() {
|
316674
|
+
var t;
|
316675
|
+
return typeof window > "u" ? "en" : ((t = navigator.languages) == null ? void 0 : t[0]) || navigator.language || navigator.userLanguage || navigator.browserLanguage || "en";
|
316676
|
+
}
|
316677
|
+
const AM = {
|
316673
316678
|
// TODO future work: figure out how to incorporate base theme typography?
|
316674
316679
|
h1: {
|
316675
316680
|
// Used by the top "Language Chooser" title bar
|
@@ -316697,12 +316702,12 @@ const GM = ({ locale: n = "en", children: t }) => {
|
|
316697
316702
|
fontSize: "0.875rem",
|
316698
316703
|
letterSpacing: "0.05rem"
|
316699
316704
|
}
|
316700
|
-
}, qo = "90px",
|
316705
|
+
}, qo = "90px", UM = (n) => /* @__PURE__ */ H(GM, {
|
316701
316706
|
locale: n.uiLanguage,
|
316702
|
-
children: /* @__PURE__ */ H(
|
316707
|
+
children: /* @__PURE__ */ H(PM, {
|
316703
316708
|
...n
|
316704
316709
|
})
|
316705
|
-
}),
|
316710
|
+
}), PM = (n) => {
|
316706
316711
|
var _a, Ma;
|
316707
316712
|
const { i18n: t, _: i } = hl(), s = bI(n.onSelectionChange, n.searchResultModifier), [o, r] = me(!1);
|
316708
316713
|
tt(() => {
|
@@ -316754,7 +316759,7 @@ const GM = ({ locale: n = "en", children: t }) => {
|
|
316754
316759
|
p && (p.value = ""), s.onSearchStringChange(""), p == null || p.focus();
|
316755
316760
|
}, K = zt(), O = dv({
|
316756
316761
|
...K,
|
316757
|
-
typography:
|
316762
|
+
typography: AM
|
316758
316763
|
});
|
316759
316764
|
function E(W) {
|
316760
316765
|
var k;
|
@@ -317182,12 +317187,12 @@ const GM = ({ locale: n = "en", children: t }) => {
|
|
317182
317187
|
});
|
317183
317188
|
};
|
317184
317189
|
export {
|
317185
|
-
|
317186
|
-
|
317190
|
+
UM as LanguageChooser,
|
317191
|
+
PM as LanguageChooserInner,
|
317187
317192
|
zl as createTagFromOrthography,
|
317188
317193
|
jl as defaultDisplayName,
|
317189
|
-
|
317190
|
-
|
317194
|
+
ZM as defaultRegionForLangTag,
|
317195
|
+
KM as defaultSearchResultModifier,
|
317191
317196
|
eg as isUnlistedLanguage,
|
317192
317197
|
rl as parseLangtagFromLangChooser
|
317193
317198
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=JSON.parse(`{"/4KKi/":["Si vous ne trouvez pas une langue et qu'elle n'apparaît pas dans ethnologue.com, vous pouvez la définir ici."],"6YtxFj":["Nom"],"8/S/J1":["Si cette interface utilisateur ne vous propose pas un code que vous savez être un <0>code BCP 47</0> valide, vous pouvez le saisir à la main. Maintenez la touche CTRL enfoncée tout en cliquant sur cette étiquette."],"8ZdHUQ":["Modifier l'étiquette de langue"],"F3iq3K":["Sélectionner le script du système d'écriture"],"JNCzPW":["Pays"],"L1yZ0a":["Si vous avez trouvé la langue principale mais que vous souhaitez modifier certains éléments spécifiques comme le script ou le dialecte, vous pouvez le faire ici."],"MDr+8d":["Nous disposons d'une liste de presque toutes les langues connues, avec indication des lieux où elles sont parlées et de la manière dont elles s'écrivent."],"O6GyTi":["Commencez à taper pour trouver votre langue."],"S9s19z":["Créer une langue non inscrite"],"XzXMHk":["Sélectionnez une langue"],"Zi7dyz":["Systèmes d’écriture"],"aCDQQ/":["Afficher cette langue de cette façon"],"ausuby":["Une langue de ",["0"]],"dEgA5A":["Annuler"],"jROyBC":["Si cette interface utilisateur ne vous propose pas un code que vous savez être un code ISO 639 valide, vous pouvez le saisir ici :"],"jmIlmi":["Recherche par nom, code ou pays"],"lPvBVm":["Étiquette de langue personnalisée"],"nHKy0o":["Langue non inscrite"],"qLF7Lp":["BCP 47 Tag : <0>",["0"],"</0>"],"s/2hiv":["Il ne s'agit pas d'un format IETF BCP 47 valide : ",["customTag"]],"sW5OjU":["requis"],"srRMnJ":["Personnaliser"],"sxkWRg":["Avancé"],"ydag7l":["Variante (dialecte)"],"zga9sT":["OK"]}`);exports.messages=e;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
const e = JSON.parse(`{"/4KKi/":["Si vous ne trouvez pas une langue et qu'elle n'apparaît pas dans ethnologue.com, vous pouvez la définir ici."],"6YtxFj":["Nom"],"8/S/J1":["Si cette interface utilisateur ne vous propose pas un code que vous savez être un <0>code BCP 47</0> valide, vous pouvez le saisir à la main. Maintenez la touche CTRL enfoncée tout en cliquant sur cette étiquette."],"8ZdHUQ":["Modifier l'étiquette de langue"],"F3iq3K":["Sélectionner le script du système d'écriture"],"JNCzPW":["Pays"],"L1yZ0a":["Si vous avez trouvé la langue principale mais que vous souhaitez modifier certains éléments spécifiques comme le script ou le dialecte, vous pouvez le faire ici."],"MDr+8d":["Nous disposons d'une liste de presque toutes les langues connues, avec indication des lieux où elles sont parlées et de la manière dont elles s'écrivent."],"O6GyTi":["Commencez à taper pour trouver votre langue."],"S9s19z":["Créer une langue non inscrite"],"XzXMHk":["Sélectionnez une langue"],"Zi7dyz":["Systèmes d’écriture"],"aCDQQ/":["Afficher cette langue de cette façon"],"ausuby":["Une langue de ",["0"]],"dEgA5A":["Annuler"],"jROyBC":["Si cette interface utilisateur ne vous propose pas un code que vous savez être un code ISO 639 valide, vous pouvez le saisir ici :"],"jmIlmi":["Recherche par nom, code ou pays"],"lPvBVm":["Étiquette de langue personnalisée"],"nHKy0o":["Langue non inscrite"],"qLF7Lp":["BCP 47 Tag : <0>",["0"],"</0>"],"s/2hiv":["Il ne s'agit pas d'un format IETF BCP 47 valide : ",["customTag"]],"sW5OjU":["requis"],"srRMnJ":["Personnaliser"],"sxkWRg":["Avancé"],"ydag7l":["Variante (dialecte)"],"zga9sT":["OK"]}`);
|
2
|
+
export {
|
3
|
+
e as messages
|
4
|
+
};
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "A language chooser React component using MUI",
|
4
4
|
"author": "SIL Global",
|
5
5
|
"license": "MIT",
|
6
|
-
"version": "0.1.
|
6
|
+
"version": "0.1.2",
|
7
7
|
"main": "./index.js",
|
8
8
|
"types": "./index.d.ts",
|
9
9
|
"exports": {
|
@@ -18,8 +18,8 @@
|
|
18
18
|
"e2e": "playwright test"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@ethnolib/find-language": "0.1.
|
22
|
-
"@ethnolib/language-chooser-react-hook": "0.1.
|
21
|
+
"@ethnolib/find-language": "0.1.2",
|
22
|
+
"@ethnolib/language-chooser-react-hook": "0.1.2",
|
23
23
|
"lodash": "^4.17.21",
|
24
24
|
"react-lazyload": "^3.2.1",
|
25
25
|
"@mui/icons-material": "^5.15.19"
|
package/messages-AHGmSBNt.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=JSON.parse('{"/4KKi/":["If you cannot find a language and it does not appear in ethnologue.com, you can instead define the language here."],"6YtxFj":["Nom"],"8/S/J1":["If this user interface is not offering you a code that you know is valid <0>BCP 47 code</0>, you can enter it by hand. Hold down CTRL key while clicking on this tag."],"8ZdHUQ":["Edit Language Tag"],"F3iq3K":["Select a script"],"JNCzPW":["Pays"],"L1yZ0a":["If you found the main language but need to change some of the specifics like Script or Dialect, you can do that here."],"MDr+8d":["We have a list of almost every known language, where it is spoken, and how it is written."],"O6GyTi":["Start typing to find your language."],"S9s19z":["Create Unlisted Language"],"XzXMHk":["Sélectionnez une langue"],"Zi7dyz":["Écriture"],"aCDQQ/":["Display this language this way"],"ausuby":["A language of ",["0"]],"dEgA5A":["Annuler"],"jROyBC":["If this user interface is not offering you a code that you know is valid ISO 639 code, you can enter it here:"],"jmIlmi":["Search by name, code, or country"],"lPvBVm":["Custom Language Tag"],"nHKy0o":["Unlisted Language Tag"],"qLF7Lp":["BCP 47 Tag: <0>",["0"],"</0>"],"s/2hiv":["This is not in a valid IETF BCP 47 format: ",["customTag"]],"sW5OjU":["requis"],"srRMnJ":["Personnaliser"],"sxkWRg":["Avancé"],"ydag7l":["Variant (dialect)"],"zga9sT":["OK"]}');exports.messages=e;
|
package/messages-C_n_9PID.mjs
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
const e = JSON.parse('{"/4KKi/":["If you cannot find a language and it does not appear in ethnologue.com, you can instead define the language here."],"6YtxFj":["Nom"],"8/S/J1":["If this user interface is not offering you a code that you know is valid <0>BCP 47 code</0>, you can enter it by hand. Hold down CTRL key while clicking on this tag."],"8ZdHUQ":["Edit Language Tag"],"F3iq3K":["Select a script"],"JNCzPW":["Pays"],"L1yZ0a":["If you found the main language but need to change some of the specifics like Script or Dialect, you can do that here."],"MDr+8d":["We have a list of almost every known language, where it is spoken, and how it is written."],"O6GyTi":["Start typing to find your language."],"S9s19z":["Create Unlisted Language"],"XzXMHk":["Sélectionnez une langue"],"Zi7dyz":["Écriture"],"aCDQQ/":["Display this language this way"],"ausuby":["A language of ",["0"]],"dEgA5A":["Annuler"],"jROyBC":["If this user interface is not offering you a code that you know is valid ISO 639 code, you can enter it here:"],"jmIlmi":["Search by name, code, or country"],"lPvBVm":["Custom Language Tag"],"nHKy0o":["Unlisted Language Tag"],"qLF7Lp":["BCP 47 Tag: <0>",["0"],"</0>"],"s/2hiv":["This is not in a valid IETF BCP 47 format: ",["customTag"]],"sW5OjU":["requis"],"srRMnJ":["Personnaliser"],"sxkWRg":["Avancé"],"ydag7l":["Variant (dialect)"],"zga9sT":["OK"]}');
|
2
|
-
export {
|
3
|
-
e as messages
|
4
|
-
};
|