Language | Language Code | Translated | Validated |
---|---|---|---|
English | en |
100% | ✔︎ (Philip) |
German | de |
100% | ✔︎ (Philip, Max) |
French | fr |
100% | ✔︎ (Léa) |
Spanish | es |
100% | ✘ |
Polish | pl |
99% | ✔︎ (Lukem) |
Czech | cz |
100% | ✔︎ (Michal) |
Localizations can be found in src/locales
. All language
files are in a [countrycode].json
file. Please check our
translations if there is already one localization file available in the
language you are speaking. Otherwise, please create a new json file and
duplicate the contents of the en.json
file and translate
the strings to your language.
Legal documents and everything that is only available in English and/or German should not be translated. This would require us to get a Laywer everytime we got a new translation. Thank you very much!
If you want to help us make the localization process faster, you can also modify the following files:
next.config.js
: Add your locale ({yourlocale}) to the configuration:i18n: {
locales: ['de', 'en', 'fr', 'es', 'pl', 'cz', '{yourlocale}'],
defaultLocale: 'en',
},
src/pages/more.tsx
: Add your locale to the change language page:<Link
className="nolink"
href="/more"
locale="{yourlocale}"
onClick={() => handleLanguageChange("{yourlocale}")}
>
<div
className={router.locale === "{yourlocale}" ? "option active" : "option"}
>
<input
className="form-check-input"
type="radio"
name="flexRadioDefault"
checked={router.locale === "{yourlocale}"}
/>
<span className="price">{t("translation_string_for_your_locale")}</span>
</div>
</Link>
locales/[...].json
: Add the translation_string_for_your_locale for your locale to the other locales:/* src/locales/en.json */
"More": {
...
"english": "English",
"german": "German",
"spanish": "Spanish",
"french": "French",
"polish": "Polish",
"cursed": "Cursed",
"czech": "Czech",
"translation_string_for_your_locale": "Your locale in e.g. english"
},