Skip to content
Snippets Groups Projects
Unverified Commit 1d675d09 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

RU Transaltions (#1734)


* ru language added

* uncheck bad changes
Use chatGPT to create new dictionary for RU translation
turn off debug mode in produ for i18n
patch issue with null comparison in verifyTranslation.js

---------

Co-authored-by: default avatarUUSR <konstantik@gmail.com>
parent 8b1ceb30
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ i18next ...@@ -9,7 +9,7 @@ i18next
.use(LanguageDetector) .use(LanguageDetector)
.init({ .init({
fallbackLng: "en", fallbackLng: "en",
debug: true, debug: import.meta.env.DEV,
defaultNS, defaultNS,
resources, resources,
lowerCaseLng: true, lowerCaseLng: true,
......
...@@ -10,10 +10,15 @@ ...@@ -10,10 +10,15 @@
// to a specific language file as this will break the other languages. Any new keys should be added to english // to a specific language file as this will break the other languages. Any new keys should be added to english
// and the language file you are working on. // and the language file you are working on.
// Contributor Notice: If you are adding a translation you MUST locally run `yarn verify:translations` from the root prior to PR.
// please do not submit PR's without first verifying this test passes as it will tell you about missing keys or values
// from the primary dictionary.
import English from "./en/common.js"; import English from "./en/common.js";
import Spanish from "./es/common.js"; import Spanish from "./es/common.js";
import French from "./fr/common.js"; import French from "./fr/common.js";
import Mandarin from "./zh/common.js"; import Mandarin from "./zh/common.js";
import Russian from "./ru/common.js";
export const defaultNS = "common"; export const defaultNS = "common";
export const resources = { export const resources = {
...@@ -29,4 +34,7 @@ export const resources = { ...@@ -29,4 +34,7 @@ export const resources = {
fr: { fr: {
common: French, common: French,
}, },
ru: {
common: Russian,
},
}; };
This diff is collapsed.
...@@ -9,12 +9,16 @@ function langDisplayName(lang) { ...@@ -9,12 +9,16 @@ function langDisplayName(lang) {
function compareStructures(lang, a, b, subdir = null) { function compareStructures(lang, a, b, subdir = null) {
//if a and b aren't the same type, they can't be equal //if a and b aren't the same type, they can't be equal
if (typeof a !== typeof b) { if (typeof a !== typeof b && a !== null && b !== null) {
console.log("Invalid type comparison", [ console.log("Invalid type comparison", [
{ {
lang, lang,
a: typeof a, a: typeof a,
b: typeof b, b: typeof b,
values: {
a,
b,
},
...(!!subdir ? { subdir } : {}), ...(!!subdir ? { subdir } : {}),
}, },
]); ]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment