diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index a37dbdf..9afbbab 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -5,6 +5,7 @@ export const languageFiles = { 'be-BY': async () => (await import('./json/be-BY.json')).default, 'bn-BD': async () => (await import('./json/bn-BD.json')).default, 'de-DE': async () => (await import('./json/de-DE.json')).default, + 'en-US': async () => (await import('./json/en-US.json')).default, 'es-ES': async () => (await import('./json/es-ES.json')).default, 'fa-IR': async () => (await import('./json/fa-IR.json')).default, 'fr-FR': async () => (await import('./json/fr-FR.json')).default, @@ -31,4 +32,6 @@ export const languageFiles = { 'zh-Hant': async () => (await import('./json/zh-Hant.json')).default, }; -export const supportedLocales = [defaultLocale].concat(Object.keys(languageFiles)); +export const supportedLocales = [defaultLocale].concat( + Object.keys(languageFiles).filter((x) => x !== defaultLocale), +); diff --git a/src/i18n/json/en-US.json b/src/i18n/json/en-US.json new file mode 100644 index 0000000..bba2e6b --- /dev/null +++ b/src/i18n/json/en-US.json @@ -0,0 +1,16 @@ +{ + "React lifecycle methods diagram": "React lifecycle methods diagram", + "Options": "Options", + "Show less-common lifecycles": "Show less-common lifecycles", + "Mounting": "Mounting", + "Updating": "Updating", + "Unmounting": "Unmounting", + "“{name} phase”": "“{name} phase”", + "Pure and has no side effects. May be paused, aborted or restarted by React.": "Pure and has no side effects. May be paused, aborted or restarted by React.", + "Can read the DOM.": "Can read the DOM.", + "Can work with DOM, run side effects, schedule updates.": "Can work with DOM, run side effects, schedule updates.", + "React updates DOM and refs": "React updates DOM and refs", + "Read docs for {name} (opens in a new tab)": "Read docs for {name} (opens in a new tab)", + "//reactjs.org/docs/react-component.html#{docname}": "//reactjs.org/docs/react-component.html#{docname}", + "See project's page on GitHub (opens in a new tab)": "See project's page on GitHub (opens in a new tab)" +}