Skip to content

Commit

Permalink
RU Transaltions (Mintplex-Labs#1734)
Browse files Browse the repository at this point in the history
* 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: UUSR <[email protected]>
  • Loading branch information
2 people authored and sync_forks committed Jul 31, 2024
1 parent dd46d11 commit 23eafa8
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ i18next
.use(LanguageDetector)
.init({
fallbackLng: "en",
debug: true,
debug: import.meta.env.DEV,
defaultNS,
resources,
lowerCaseLng: true,
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/locales/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
// 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.

// 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 Spanish from "./es/common.js";
import French from "./fr/common.js";
import Mandarin from "./zh/common.js";
import Russian from "./ru/common.js";

export const defaultNS = "common";
export const resources = {
Expand All @@ -29,4 +34,7 @@ export const resources = {
fr: {
common: French,
},
ru: {
common: Russian,
},
};
Loading

0 comments on commit 23eafa8

Please sign in to comment.