diff --git a/client/i18next-scanner.config.cjs b/client/i18next-scanner.config.cjs index 268e75f..39429b0 100644 --- a/client/i18next-scanner.config.cjs +++ b/client/i18next-scanner.config.cjs @@ -1,3 +1,5 @@ +const lean4gameConfig = require("./src/config.json") + const typescriptTransform = require('i18next-scanner-typescript'); const fs = require('fs'); @@ -97,7 +99,7 @@ module.exports = { // sourceType: 'module', // defaults to 'module' // } }, - lngs: ['en','de'], + lngs: lean4gameConfig.languages.map(e => e.iso), ns: [], defaultLng: 'en', defaultNs: 'translation', diff --git a/client/public/locales/de/translation.json b/client/public/locales/de/translation.json index 8d90fda..223c724 100644 --- a/client/public/locales/de/translation.json +++ b/client/public/locales/de/translation.json @@ -86,5 +86,8 @@ "Save my settings (in the browser store)": "Einstellungen im Browser speichern.", "

Select a JSON file with the saved game progress to load your progress.

<1><0>Warning: This will delete your current game progress! Consider <2>downloading your current progress first!": "", "Upload Saved Progress": "", - "Load selected file": "" + "Load selected file": "", + "Mobile": "", + "Auto": "", + "Desktop": "" } diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index 7ecf0f2..32ab4e7 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -87,5 +87,8 @@ "Save my settings (in the browser store)": "Save my settings (in the browser store)", "

Select a JSON file with the saved game progress to load your progress.

<1><0>Warning: This will delete your current game progress! Consider <2>downloading your current progress first!": "

Select a JSON file with the saved game progress to load your progress.

<1><0>Warning: This will delete your current game progress! Consider <2>downloading your current progress first!", "Upload Saved Progress": "Upload Saved Progress", - "Load selected file": "Load selected file" + "Load selected file": "Load selected file", + "Mobile": "Mobile", + "Auto": "Auto", + "Desktop": "Desktop" } diff --git a/client/src/config.json b/client/src/config.json index 638a313..3e696f2 100644 --- a/client/src/config.json +++ b/client/src/config.json @@ -19,5 +19,4 @@ "name": "Deutsch" } ] - }