Now in Swiss German!
This commit is contained in:
parent
8aa23a4811
commit
2b611dda5b
6 changed files with 97 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@ node_modules
|
|||
dist/*
|
||||
target
|
||||
yarn-error.log
|
||||
.vs
|
||||
|
|
@ -165,6 +165,18 @@ class SettingsPane extends Component {
|
|||
label={t('uiLang.en')}
|
||||
onClick={() => this.handleUiLanguageSelect('en')}
|
||||
/>
|
||||
<Button
|
||||
className="settings-pane__setting__group__button settings-pane__setting__group__button--radio"
|
||||
icon={
|
||||
this.props.settings.uiLang === 'ch' ? (
|
||||
<RadioButtonCheckedIcon />
|
||||
) : (
|
||||
<RadioButtonUncheckedIcon />
|
||||
)
|
||||
}
|
||||
label={t('uiLang.ch')}
|
||||
onClick={() => this.handleUiLanguageSelect('ch')}
|
||||
/>
|
||||
</div>
|
||||
<div className="settings-pane__setting">
|
||||
<div className="settings-pane__setting__label">
|
||||
|
|
|
|||
77
src/i18n/ch.json
Normal file
77
src/i18n/ch.json
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
"app": {
|
||||
"settings": "Istellige",
|
||||
"fileRenameSuccess": "D Datei isch erfolgrich umbenennt worde!",
|
||||
"usageHint": {
|
||||
"message": "Bitte{{message}}.",
|
||||
"searchTvShow": " suecht nachere Serie",
|
||||
"openFiles": " öffne d Datei, wod wetsch umbenenne",
|
||||
"and": " und"
|
||||
},
|
||||
"error": {
|
||||
"loadSeasons": "Da isch öppis schief gloffe :( {{error}}"
|
||||
}
|
||||
},
|
||||
"tvShowInput": {
|
||||
"placeholder": "Nach Serie sueche...",
|
||||
"error": {
|
||||
"searchTvShow": "Fähler bim Sueche: {{error}}"
|
||||
}
|
||||
},
|
||||
"filePicker": {
|
||||
"openFiles": "Dateie ufmache",
|
||||
"error": {
|
||||
"openFiles": "Es isch schwieder öppis schief gloffe :( :( : {{error}}"
|
||||
}
|
||||
},
|
||||
"fileRename": {
|
||||
"includeAll": "Alli uswähle",
|
||||
"excludeAll": "Alli abwähle",
|
||||
"noOutputDir": "keine! (Dateie bliebed, wo sie sind)",
|
||||
"chooseOutputDir": "Zielordner wähle",
|
||||
"rename": "Umbenenne",
|
||||
"error": {
|
||||
"renameFiles": "Fähler bim Umbenenne vode Dateie: {{error}}",
|
||||
"fileExisting": "Fähler: ei Datei mit dem Namen existiert scho: {{newFileName}}",
|
||||
"createDir": "Fähler bim Erstelle vom Zielordner: {{error}}"
|
||||
}
|
||||
},
|
||||
"settingsPane": {
|
||||
"heading": "Istellige",
|
||||
"uiLang": {
|
||||
"title": "Sprach vode Beuntzeroberflächi.",
|
||||
"de": "Deutsch",
|
||||
"en": "English",
|
||||
"ch": "Schwiizerdütsch"
|
||||
},
|
||||
"metaLang": {
|
||||
"title": "Sprach vode Metadate.",
|
||||
"placeholder": "Sprach wähle"
|
||||
},
|
||||
"metadataProvider": {
|
||||
"title": "Metadate-Abüter.",
|
||||
"placeholder": "Abüter wähle"
|
||||
},
|
||||
"fileNameTemplate": {
|
||||
"title": "Vorlag für Dateinäme (<0/>).",
|
||||
"help": "hilf",
|
||||
"hint": "Bispiel: {{example}}",
|
||||
"tvShowExampleName": "Breaking Bad",
|
||||
"episodeExampleName": "Felina",
|
||||
"errorInvalidTemplate": "D Vorlag mues <0>{season_no}</0> und <1>{episode_no}</1> enthalte, demit d Dateinäme eidütig sind!"
|
||||
},
|
||||
"defaultOutputDir": {
|
||||
"title": "Standard-Zielordner.",
|
||||
"choose": "Uswähle",
|
||||
"hint": "Verwände <0>{show_name}</0>, zum de Name vode Serie im Ordnername izfüege."
|
||||
},
|
||||
"includedFileTypes": {
|
||||
"title": "Dateitype.",
|
||||
"hint": "Nume Dateitype, wo da ufgführt sind, chönd göffnet werde (trenne mit Komma ,)."
|
||||
},
|
||||
"excludedTerms": {
|
||||
"title": "Usnahme.",
|
||||
"hint": "Dateie, wo eine vo dene ufgführte Begriff im Name enthalted, werded nöd göffnet (trenne mit Komma ,)."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -41,7 +41,8 @@
|
|||
"uiLang": {
|
||||
"title": "Sprache der Benutzeroberfläche.",
|
||||
"de": "Deutsch",
|
||||
"en": "Englisch"
|
||||
"en": "English",
|
||||
"ch": "Schwiizerdütsch"
|
||||
},
|
||||
"metaLang": {
|
||||
"title": "Sprache der Metadaten.",
|
||||
|
|
|
|||
|
|
@ -40,8 +40,9 @@
|
|||
"heading": "Settings",
|
||||
"uiLang": {
|
||||
"title": "User interface language.",
|
||||
"de": "German",
|
||||
"en": "English"
|
||||
"de": "Deutsch",
|
||||
"en": "English",
|
||||
"ch": "Schwiizerduetsch"
|
||||
},
|
||||
"metaLang": {
|
||||
"title": "Metadata language.",
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
import i18n from 'i18next'
|
||||
import de from './de.json'
|
||||
import en from './en.json'
|
||||
import deCh from './ch.json'
|
||||
|
||||
i18n.init({
|
||||
lng: localStorage.getItem('uiLang') || 'en',
|
||||
fallbackLng: 'en',
|
||||
// debug: true,
|
||||
|
||||
resources: { en, de },
|
||||
resources: { en, de, 'ch': deCh },
|
||||
|
||||
interpolation: {
|
||||
escapeValue: false, // not needed for react
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue