Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Enabled German translation #451

Merged
merged 10 commits into from
Mar 3, 2024
Prev Previous commit
Next Next commit
Merge branch 'master' into i18n-german
  • Loading branch information
stefanb committed Feb 28, 2024
commit 3a41d8d46932dcb8ec16364e1595c217eed07437
9 changes: 6 additions & 3 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import en from './locales/en.json';
import sl from './locales/sl.json';
import it from './locales/it.json';
import hr from './locales/hr.json';
import hu from './locales/hu.json';
import de from './locales/de.json';

export const languages = [
{ name: 'English', code: 'en' },
{ name: 'Slovenščina', code: 'sl' },
{ name: 'Italiano', code: 'it' },
{ name: 'Hrvatski', code: 'hr' },
{ name: 'Deutsch', code: 'de' },
{ name: 'English', code: 'en' },
{ name: 'Hrvatski', code: 'hr' },
{ name: 'Italiano', code: 'it' },
{ name: 'Magyar', code: 'hu' },
];

i18next
Expand All @@ -27,6 +29,7 @@ i18next
en: { translation: en },
it: { translation: it },
hr: { translation: hr },
hu: { translation: hu },
de: { translation: de },
},
lng: process.env.REACT_APP_DEFAULT_LANGUAGE, // if you're using a language detector, do not define the lng option
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.