Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const languageFiles = {
'be-BY': async () => (await import('./json/be-BY.json')).default,
'de-DE': async () => (await import('./json/de-DE.json')).default,
'es-ES': async () => (await import('./json/es-ES.json')).default,
'en-US': async () => (await import('./json/en-US.json')).default,
'fa-IR': async () => (await import('./json/fa-IR.json')).default,
'fr-FR': async () => (await import('./json/fr-FR.json')).default,
'hi-IN': async () => (await import('./json/hi-IN.json')).default,
Expand All @@ -30,4 +31,4 @@ export const languageFiles = {
'zh-Hant': async () => (await import('./json/zh-Hant.json')).default,
};

export const supportedLocales = [defaultLocale].concat(Object.keys(languageFiles));
export const supportedLocales = Object.keys(languageFiles);
20 changes: 20 additions & 0 deletions src/i18n/json/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"React lifecycle methods diagram": "React lifecycle methods diagram",
"Options": "Options",
"Show less-common lifecycles": "Show less-common lifecycles",
"React version": "React version",
"Language": "Language",
"Mounting": "Mounting",
"Updating": "Updating",
"Unmounting": "Unmounting",
"Phases": "Phases",
"“{name} phase”": "“Phase {name}”",
"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}": "//pl.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)",
"See project on": "See project on"
}