From 428c300e9f42f8b9232f780d387292c1a94fcd23 Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Wed, 29 Mar 2023 00:45:16 +0200 Subject: feat: i18n (#182) * build: add vue-i18n dependency * feat: add i18n plugin to vue project * feat: use translations in play button * feat: translate play view * feat: translate menu items * feat: translate local mods view * feat: translate online mods view * feat: translate mods menu * feat: translate thunderstore mod card component * fix: remove useless "this" keyword * feat: translate settings view * fix: remove leftover test invocation * feat: add language selector component * feat: using language selector updates interface's language * feat: save language in persistent store on selector change * feat: initialize lang on app launch * refactor: move i18n code into App.mounted callback * feat: update interface language on app launch * feat: adjust language selection on language selector load * fix: this.$root can't be null * feat: translate store notifications * fix: add missing parameter to english translation * feat: translate "by" author keyword * feat: translate repair window * feat: translate repair window title * docs: add some documentation regarding localization * docs: explain how to add a new language * feat: translate Northstar release canal selector elements * docs: describe how to inject variable into translations * feat: translate "info" word * feat: translate popconfirm buttons * fix: remove "this" keyword * fix: save store when updating interface language --- src-vue/src/main.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src-vue/src/main.ts') diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index 57d41865..7ee700da 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -1,4 +1,5 @@ import { createApp } from 'vue' +import { createI18n } from "vue-i18n"; import App from './App.vue' import ElementPlus from "element-plus"; import * as ElementPlusIconsVue from '@element-plus/icons-vue' @@ -10,10 +11,21 @@ import SettingsView from "./views/SettingsView.vue"; import DeveloperView from "./views/DeveloperView.vue"; import RepairView from "./views/RepairView.vue"; import {createRouter, createWebHashHistory} from "vue-router"; +import en from "./i18n/lang/en"; +import fr from "./i18n/lang/fr"; const app = createApp(App); +// internationalization +export const i18n = createI18n({ + locale: 'en', + fallbackLocale: 'en', + messages: { + en, fr + } +}); +app.use(i18n); // styles import 'element-plus/theme-chalk/index.css'; -- cgit v1.2.3 From 2852649d72355191c57eeb106b9f0f9f99577579 Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Thu, 30 Mar 2023 17:12:44 +0200 Subject: refactor: Convert localization files from TypeScript to JSON format (#253) * refactor: convert localization files from TypeScript to JSON format * docs: update i18n documentation --- docs/DEVELOPMENT.md | 14 ++-- src-vue/src/i18n/lang/en.json | 156 ++++++++++++++++++++++++++++++++++++++++++ src-vue/src/i18n/lang/en.ts | 156 ------------------------------------------ src-vue/src/i18n/lang/fr.json | 156 ++++++++++++++++++++++++++++++++++++++++++ src-vue/src/i18n/lang/fr.ts | 156 ------------------------------------------ src-vue/src/main.ts | 4 +- 6 files changed, 321 insertions(+), 321 deletions(-) create mode 100644 src-vue/src/i18n/lang/en.json delete mode 100644 src-vue/src/i18n/lang/en.ts create mode 100644 src-vue/src/i18n/lang/fr.json delete mode 100644 src-vue/src/i18n/lang/fr.ts (limited to 'src-vue/src/main.ts') diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 94c1bac7..ce6ba010 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -208,9 +208,9 @@ For FlightCore to be used by the largest number, its interface is translated in Localization files are located in `src-vue/src/i18n/lang`. -To add a new language, you have to create associated file, *e.g. `src-vue/src/i18n/lang/de.ts`*, and import it in the i18n application object in `main.ts`: +To add a new language, you have to create associated file, *e.g. `src-vue/src/i18n/lang/de.json`*, and import it in the i18n application object in `main.ts`: ```javascript -import de from "./i18n/lang/de"; +import de from "./i18n/lang/de.json"; export const i18n = createI18n({ locale: 'en', @@ -269,11 +269,11 @@ i18n.global.tc('notification.game_folder.new.text'); It is possible to inject variables into translations: -```javascript -channels: { - release: { - component: { - text: "Switched release channel to {canal}." +```json +"channels": { + "release": { + "component": { + "text": "Switched release channel to {canal}." } } } diff --git a/src-vue/src/i18n/lang/en.json b/src-vue/src/i18n/lang/en.json new file mode 100644 index 00000000..5e1974cc --- /dev/null +++ b/src-vue/src/i18n/lang/en.json @@ -0,0 +1,156 @@ +{ + "menu": { + "play": "Play", + "changelog": "Changelog", + "mods": "Mods", + "settings": "Settings", + "dev": "Dev" + }, + + "generic": { + "yes": "Yes", + "no": "No", + "error": "Error", + "cancel": "Cancel", + "informationShort": "Info" + }, + + "play": { + "button": { + "northstar_is_running": "Game is running", + "select_game_dir": "Select Titanfall2 game folder", + "install": "Install", + "installing": "Installing...", + "update": "Update", + "updating": "Updating...", + "ready_to_play": "Launch game" + }, + + "unknown_version": "Unknown version", + "see_patch_notes": "see patch notes", + "players": "players", + "servers": "servers", + "unable_to_load_playercount": "Unable to load playercount", + "northstar_running": "Northstar is running:", + "origin_running": "Origin is running:" + }, + + "mods": { + "local": { + "no_mods": "No mods were found.", + "delete_confirm": "Are you sure to delete this mod?", + "delete": "Delete", + "part_of_ts_mod": "This Northstar mod is part of a Thunderstore mod", + "success_deleting": "Success deleting {modName}" + }, + + "online": { + "no_match": "No matching mod has been found.", + "try_another_search": "Try another search!" + }, + + "menu": { + "local": "Local", + "online": "Online", + "filter": "Filter", + "search": "Search", + "sort_mods": "Sort mods", + "select_categories": "Select categories", + + "sort": { + "name_asc": "By name (A to Z)", + "name_desc": "By name (Z to A)", + "date_asc": "By date (from oldest)", + "date_desc": "By date (from newest)", + "most_downloaded": "Most downloaded", + "top_rated": "Top rated" + } + }, + + "card": { + "button": { + "being_installed": "Installing...", + "being_updated": "Updating...", + "installed": "Installed", + "install": "Install", + "outdated": "Update" + }, + + "by": "by", + "more_info": "More info", + "remove": "Remove mod", + "remove_dialog_title": "Warning", + "remove_dialog_text": "Delete Thunderstore mod?", + "remove_success": "Removed {modName}", + "install_success": "Installed {modName}" + } + }, + + "settings": { + "manage_install": "Manage installation", + "choose_folder": "Choose installation folder", + "nb_ts_mods_per_page": "Number of Thunderstore mods per page", + "nb_ts_mods_per_page_desc1": "This has an impact on display performances when browsing Thunderstore mods.", + "nb_ts_mods_per_page_desc2": "Set this value to 0 to disable pagination.", + "nb_ts_mods_reset": "Reset to default", + "language": "Language", + "language_select": "Select your favorite language", + "about": "About:", + "flightcore_version": "FlightCore version:", + "testing": "Testing:", + "enable_test_channels": "Enable testing release channels", + "dev_mode_enabled_title": "Watch out!", + "dev_mode_enabled_text": "Developer mode enabled.", + + "repair": { + "title": "Repair", + "open_window": "Open repair window", + + "window": { + "title": "FlightCore repair window", + "warning": "This window contains various functionality to repair common issues with Northstar and FlightCore.", + "disable_all_but_core": "Disable all but core mods", + "force_reinstall_ns": "Force reinstall Northstar", + "force_delete_temp_dl": "Force delete temp download folder", + "delete_persistent_store": "Delete FlightCore persistent store" + } + } + }, + + "notification": { + "game_folder": { + "new": { + "title": "New game folder", + "text": "Game folder was successfully updated." + }, + + "wrong": { + "title": "Wrong folder", + "text": "Selected folder is not a valid Titanfall2 install." + }, + + "not_found": { + "title": "Titanfall2 not found!", + "text": "Please manually select install location" + } + }, + + "flightcore_outdated": { + "title": "FlightCore outdated!", + "text": "Please update FlightCore.\nRunning outdated version {oldVersion}.\nNewest is {newVersion}!" + } + }, + + "channels": { + "release": { + "switch": { + "text": "Switched release channel to \"{canal}\"." + } + }, + + "names": { + "Northstar": "Northstar", + "NorthstarReleaseCandidate": "Northstar release candidate" + } + } +} diff --git a/src-vue/src/i18n/lang/en.ts b/src-vue/src/i18n/lang/en.ts deleted file mode 100644 index c02b3d18..00000000 --- a/src-vue/src/i18n/lang/en.ts +++ /dev/null @@ -1,156 +0,0 @@ -export default { - menu: { - play: 'Play', - changelog: 'Changelog', - mods: 'Mods', - settings: 'Settings', - dev: 'Dev' - }, - - generic: { - yes: 'Yes', - no: 'No', - error: 'Error', - cancel: 'Cancel', - informationShort: 'Info' - }, - - play: { - button: { - northstar_is_running: 'Game is running', - select_game_dir: 'Select Titanfall2 game folder', - install: 'Install', - installing: 'Installing...', - update: 'Update', - updating: 'Updating...', - ready_to_play: 'Launch game' - }, - - unknown_version: "Unknown version", - see_patch_notes: "see patch notes", - players: "players", - servers: "servers", - unable_to_load_playercount: "Unable to load playercount", - northstar_running: "Northstar is running:", - origin_running: "Origin is running:" - }, - - mods: { - local: { - no_mods: "No mods were found.", - delete_confirm: "Are you sure to delete this mod?", - delete: "Delete", - part_of_ts_mod: "This Northstar mod is part of a Thunderstore mod", - success_deleting: "Success deleting {modName}" - }, - - online: { - no_match: "No matching mod has been found.", - try_another_search: "Try another search!" - }, - - menu: { - local: 'Local', - online: 'Online', - filter: 'Filter', - search: 'Search', - sort_mods: 'Sort mods', - select_categories: 'Select categories', - - sort: { - name_asc: 'By name (A to Z)', - name_desc: 'By name (Z to A)', - date_asc: 'By date (from oldest)', - date_desc: 'By date (from newest)', - most_downloaded: "Most downloaded", - top_rated: "Top rated" - } - }, - - card: { - button: { - being_installed: "Installing...", - being_updated: "Updating...", - installed: "Installed", - install: "Install", - outdated: "Update" - }, - - by: "by", - more_info: "More info", - remove: "Remove mod", - remove_dialog_title: "Warning", - remove_dialog_text: "Delete Thunderstore mod?", - remove_success: "Removed {modName}", - install_success: "Installed {modName}" - } - }, - - settings: { - manage_install: "Manage installation", - choose_folder: "Choose installation folder", - nb_ts_mods_per_page: "Number of Thunderstore mods per page", - nb_ts_mods_per_page_desc1: "This has an impact on display performances when browsing Thunderstore mods.", - nb_ts_mods_per_page_desc2: "Set this value to 0 to disable pagination.", - nb_ts_mods_reset: "Reset to default", - language: 'Language', - language_select: "Select your favorite language", - about: "About:", - flightcore_version: "FlightCore version:", - testing: "Testing:", - enable_test_channels: "Enable testing release channels", - dev_mode_enabled_title: "Watch out!", - dev_mode_enabled_text: "Developer mode enabled.", - - repair: { - title: "Repair", - open_window: "Open repair window", - - window: { - title: "FlightCore repair window", - warning: "This window contains various functionality to repair common issues with Northstar and FlightCore.", - disable_all_but_core: "Disable all but core mods", - force_reinstall_ns: "Force reinstall Northstar", - force_delete_temp_dl: "Force delete temp download folder", - delete_persistent_store: "Delete FlightCore persistent store" - } - } - }, - - notification: { - game_folder: { - new: { - title: "New game folder", - text: "Game folder was successfully updated." - }, - - wrong: { - title: "Wrong folder", - text: "Selected folder is not a valid Titanfall2 install." - }, - - not_found: { - title: "Titanfall2 not found!", - text: "Please manually select install location" - } - }, - - flightcore_outdated: { - title: "FlightCore outdated!", - text: "Please update FlightCore.\nRunning outdated version {oldVersion}.\nNewest is {newVersion}!" - } - }, - - channels: { - release: { - switch: { - text: 'Switched release channel to "{canal}".' - } - }, - - names: { - Northstar: 'Northstar', - NorthstarReleaseCandidate: 'Northstar release candidate' - } - } -}; diff --git a/src-vue/src/i18n/lang/fr.json b/src-vue/src/i18n/lang/fr.json new file mode 100644 index 00000000..27d2be33 --- /dev/null +++ b/src-vue/src/i18n/lang/fr.json @@ -0,0 +1,156 @@ +{ + "menu": { + "play": "Jouer", + "changelog": "Notes", + "mods": "Mods", + "settings": "Paramètres", + "dev": "Dev" + }, + + "generic": { + "yes": "Oui", + "no": "Non", + "error": "Erreur", + "cancel": "Annuler", + "informationShort": "Info" + }, + + "play": { + "button": { + "northstar_is_running": "En cours d'utilisation", + "select_game_dir": "Sélectionner le dossier du jeu", + "install": "Installer", + "installing": "Installation...", + "update": "Mettre à jour", + "updating": "Mise à jour...", + "ready_to_play": "Jouer" + }, + + "unknown_version": "Version inconnue", + "see_patch_notes": "voir les notes de version", + "players": "joueurs", + "servers": "serveurs", + "unable_to_load_playercount": "Impossible de charger les statistiques", + "northstar_running": "Northstar est en cours d'exécution :", + "origin_running": "Origin est en cours d'exécution :" + }, + + "mods": { + "local": { + "no_mods": "Aucun mod trouvé.", + "delete_confirm": "Êtes-vous certain de vouloir supprimer ce mod ?", + "delete": "Supprimer", + "part_of_ts_mod": "Ce mod Northstar fait partie d'un mod Thunderstore", + "success_deleting": "Succès de la suppression de {modName}" + }, + + "online": { + "no_match": "Aucun mod correspondant n'a été trouvé.", + "try_another_search": "Essayez une autre recherche !" + }, + + "menu": { + "local": "Local", + "online": "En ligne", + "filter": "Filtrer", + "search": "Chercher", + "sort_mods": "Trier les mods", + "select_categories": "Choisir les catégories", + + "sort": { + "name_asc": "Par nom (de A à Z)", + "name_desc": "Par nom (de Z à A)", + "date_asc": "Par date (du plus vieux)", + "date_desc": "Par date (du plus récent)", + "most_downloaded": "Plus téléchargés", + "top_rated": "Mieux notés" + } + }, + + "card": { + "button": { + "being_installed": "Installation...", + "being_updated": "Mise à jour...", + "installed": "Installé", + "install": "Installer", + "outdated": "Mettre à jour" + }, + + "by": "par", + "more_info": "Plus d'informations", + "remove": "Supprimer le mod", + "remove_dialog_title": "Attention !", + "remove_dialog_text": "Voulez-vous vraiment supprimer ce mod Thunderstore ?", + "remove_success": "{modName} supprimé", + "install_success": "{modName} installé" + } + }, + + "settings": { + "manage_install": "Gérer l'installation", + "choose_folder": "Choisir le dossier d'installation du jeu", + "nb_ts_mods_per_page": "Nombre de mods Thunderstore par page", + "nb_ts_mods_per_page_desc1": "Ce paramètre a un impact sur les performances d'affichage des mods Thunderstore.", + "nb_ts_mods_per_page_desc2": "Réglez-le sur 0 pour désactiver la pagination.", + "nb_ts_mods_reset": "Valeur par défaut", + "language": "Langue", + "language_select": "Sélectionnez votre langue", + "about": "À propos", + "flightcore_version": "Version de FlightCore :", + "testing": "Tests :", + "enable_test_channels": "Activer le test de versions de pré-production", + "dev_mode_enabled_title": "Attention !", + "dev_mode_enabled_text": "Mode développeur activé.", + + "repair": { + "title": "Dépannage", + "open_window": "Ouvrir la fenêtre de dépannage", + + "window": { + "title": "Fenêtre de dépannage FlightCore", + "warning": "Cette fenêtre contient plusieurs fonctionnalité de résolution de problèmes courants avec Northstar et FlightCore.", + "disable_all_but_core": "Désactiver tous les mods (sauf ceux de Northstar)", + "force_reinstall_ns": "Forcer la réinstallation de Northstar", + "force_delete_temp_dl": "Supprimer le dossier de téléchargement temporaire", + "delete_persistent_store": "Supprimer l'espace de stockage local de FlightCore" + } + } + }, + + "notification": { + "game_folder": { + "new": { + "title": "Nouveau dossier", + "text": "Le dossier du jeu a bien été mis à jour." + }, + + "wrong": { + "title": "Mauvais dossier", + "text": "Le dossier sélectionné ne contient pas d'installation de Titanfall2." + }, + + "not_found": { + "title": "Titanfall2 non trouvé", + "text": "Veuillez sélectionner manuellement le dossier du jeu." + } + }, + + "flightcore_outdated": { + "title": "Mise à jour disponible !", + "text": "Veuillez mettre à jour FlightCore.\nVersion actuelle : {oldVersion}.\nNouvelle version : {newVersion}." + } + }, + + "channels": { + "release": { + "switch": { + "text": "Le canal de téléchargement a été réglé sur \"{canal}\"." + } + }, + + "names": { + "Northstar": "Northstar", + "NorthstarReleaseCandidate": "Version de pré-release" + } + } +} diff --git a/src-vue/src/i18n/lang/fr.ts b/src-vue/src/i18n/lang/fr.ts deleted file mode 100644 index 24bbd1b4..00000000 --- a/src-vue/src/i18n/lang/fr.ts +++ /dev/null @@ -1,156 +0,0 @@ -export default { - menu: { - play: 'Jouer', - changelog: 'Notes', - mods: 'Mods', - settings: 'Paramètres', - dev: 'Dev' - }, - - generic: { - yes: 'Oui', - no: 'Non', - error: 'Erreur', - cancel: 'Annuler', - informationShort: 'Info' - }, - - play: { - button: { - northstar_is_running: "En cours d'utilisation", - select_game_dir: 'Sélectionner le dossier du jeu', - install: 'Installer', - installing: 'Installation...', - update: 'Mettre à jour', - updating: 'Mise à jour...', - ready_to_play: 'Jouer' - }, - - unknown_version: "Version inconnue", - see_patch_notes: "voir les notes de version", - players: "joueurs", - servers: "serveurs", - unable_to_load_playercount: "Impossible de charger les statistiques", - northstar_running: "Northstar est en cours d'exécution :", - origin_running: "Origin est en cours d'exécution :" - }, - - mods: { - local: { - no_mods: "Aucun mod trouvé.", - delete_confirm: "Êtes-vous certain de vouloir supprimer ce mod ?", - delete: "Supprimer", - part_of_ts_mod: "Ce mod Northstar fait partie d'un mod Thunderstore", - success_deleting: "Succès de la suppression de {modName}" - }, - - online: { - no_match: "Aucun mod correspondant n'a été trouvé.", - try_another_search: "Essayez une autre recherche !" - }, - - menu: { - local: 'Local', - online: 'En ligne', - filter: 'Filtrer', - search: 'Chercher', - sort_mods: 'Trier les mods', - select_categories: 'Choisir les catégories', - - sort: { - name_asc: 'Par nom (de A à Z)', - name_desc: 'Par nom (de Z à A)', - date_asc: 'Par date (du plus vieux)', - date_desc: 'Par date (du plus récent)', - most_downloaded: "Plus téléchargés", - top_rated: "Mieux notés" - } - }, - - card: { - button: { - being_installed: "Installation...", - being_updated: "Mise à jour...", - installed: "Installé", - install: "Installer", - outdated: "Mettre à jour" - }, - - by: "par", - more_info: "Plus d'informations", - remove: "Supprimer le mod", - remove_dialog_title: "Attention !", - remove_dialog_text: "Voulez-vous vraiment supprimer ce mod Thunderstore ?", - remove_success: "{modName} supprimé", - install_success: "{modName} installé" - } - }, - - settings: { - manage_install: "Gérer l'installation", - choose_folder: "Choisir le dossier d'installation du jeu", - nb_ts_mods_per_page: "Nombre de mods Thunderstore par page", - nb_ts_mods_per_page_desc1: "Ce paramètre a un impact sur les performances d'affichage des mods Thunderstore.", - nb_ts_mods_per_page_desc2: "Réglez-le sur 0 pour désactiver la pagination.", - nb_ts_mods_reset: "Valeur par défaut", - language: 'Langue', - language_select: "Sélectionnez votre langue", - about: "À propos:", - flightcore_version: "Version de FlightCore :", - testing: "Tests :", - enable_test_channels: "Activer le test de versions de pré-production", - dev_mode_enabled_title: "Attention !", - dev_mode_enabled_text: "Mode développeur activé.", - - repair: { - title: "Dépannage", - open_window: "Ouvrir la fenêtre de dépannage", - - window: { - title: "Fenêtre de dépannage FlightCore", - warning: "Cette fenêtre contient plusieurs fonctionnalité de résolution de problèmes courants avec Northstar et FlightCore.", - disable_all_but_core: "Désactiver tous les mods (sauf ceux de Northstar)", - force_reinstall_ns: "Forcer la réinstallation de Northstar", - force_delete_temp_dl: "Supprimer le dossier de téléchargement temporaire", - delete_persistent_store: "Supprimer l'espace de stockage local de FlightCore" - } - } - }, - - notification: { - game_folder: { - new: { - title: "Nouveau dossier", - text: "Le dossier du jeu a bien été mis à jour." - }, - - wrong: { - title: "Mauvais dossier", - text: "Le dossier sélectionné ne contient pas d'installation de Titanfall2." - }, - - not_found: { - title: "Titanfall2 non trouvé", - text: "Veuillez sélectionner manuellement le dossier du jeu." - } - }, - - flightcore_outdated: { - title: "Mise à jour disponible !", - text: "Veuillez mettre à jour FlightCore.\nVersion actuelle : {oldVersion}.\nNouvelle version : {newVersion}." - } - }, - - channels: { - release: { - switch: { - text: 'Le canal de téléchargement a été réglé sur "{canal}".' - } - }, - - names: { - Northstar: 'Northstar', - NorthstarReleaseCandidate: 'Version de pré-release' - } - } -}; diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index 7ee700da..561efbba 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -11,8 +11,8 @@ import SettingsView from "./views/SettingsView.vue"; import DeveloperView from "./views/DeveloperView.vue"; import RepairView from "./views/RepairView.vue"; import {createRouter, createWebHashHistory} from "vue-router"; -import en from "./i18n/lang/en"; -import fr from "./i18n/lang/fr"; +import en from "./i18n/lang/en.json"; +import fr from "./i18n/lang/fr.json"; const app = createApp(App); -- cgit v1.2.3 From a4cdfb68e09ec3fe096528d52d9a099a2b44de02 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:46:21 +0200 Subject: feat: Initial German translation (#249) * feat: Initial German translation * fix: Typo * refactor: Switch single quotes to double quotes In preparation for converting to JSON * refactor: Switch translation file to JSON * fix: Better translation for "pagination" --- src-vue/src/components/LanguageSelector.vue | 6 +- src-vue/src/i18n/lang/de.json | 156 ++++++++++++++++++++++++++++ src-vue/src/main.ts | 3 +- 3 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 src-vue/src/i18n/lang/de.json (limited to 'src-vue/src/main.ts') diff --git a/src-vue/src/components/LanguageSelector.vue b/src-vue/src/components/LanguageSelector.vue index c09f6c05..5b1e7ebd 100644 --- a/src-vue/src/components/LanguageSelector.vue +++ b/src-vue/src/components/LanguageSelector.vue @@ -29,7 +29,11 @@ export default defineComponent({ { value: 'fr', label: 'Français' - } + }, + { + value: 'de', + label: 'Deutsch' + }, ] }), mounted: async function() { diff --git a/src-vue/src/i18n/lang/de.json b/src-vue/src/i18n/lang/de.json new file mode 100644 index 00000000..c875cef7 --- /dev/null +++ b/src-vue/src/i18n/lang/de.json @@ -0,0 +1,156 @@ +{ + "menu": { + "play": "Spielen", + "changelog": "Versionhistorie", + "mods": "Mods", + "settings": "Einstellungen", + "dev": "Dev" + }, + + "generic": { + "yes": "Ja", + "no": "Nein", + "error": "Fehler", + "cancel": "Abbrechen", + "informationShort": "Info" + }, + + "play": { + "button": { + "northstar_is_running": "Spiel läuft", + "select_game_dir": "Titanfall2 ordner wählen", + "install": "Installieren", + "installing": "Installiert...", + "update": "Aktualisieren", + "updating": "Aktualisiert...", + "ready_to_play": "Spiel starten" + }, + + "unknown_version": "Unbekannte Version", + "see_patch_notes": "Siehe Patch-Notizen", + "players": "Spieler", + "servers": "Server", + "unable_to_load_playercount": "Spielerzahl konnte nicht geladen werden", + "northstar_running": "Northstar läuft:", + "origin_running": "Origin läuft:" + }, + + "mods": { + "local": { + "no_mods": "Keine Mods gefunden.", + "delete_confirm": "Bist du dir sicher, dass du diesen Mod löschen möchtest?", + "delete": "Löschen", + "part_of_ts_mod": "Dieser Northstar Mod ist teil eines Thunderstore Mods", + "success_deleting": "{modName} erfolgreich gelöscht" + }, + + "online": { + "no_match": "Keine passenden Mods gefunden.", + "try_another_search": "Versuche eine andere Suchanfrage!" + }, + + "menu": { + "local": "Lokal", + "online": "Online", + "filter": "Filter", + "search": "Suche", + "sort_mods": "Mods sortieren", + "select_categories": "Kategorien wählen", + + "sort": { + "name_asc": "Nach Name (A to Z)", + "name_desc": "Nach Name (Z to A)", + "date_asc": "Nach Datum (älteste zuerst)", + "date_desc": "Nach Datum (neuste zuerst)", + "most_downloaded": "Am meisten heruntergeladen", + "top_rated": "Am besten bewerted" + } + }, + + "card": { + "button": { + "being_installed": "Installiert...", + "being_updated": "Aktualisiert...", + "installed": "Installiert", + "install": "Installieren", + "outdated": "Aktualisieren" + }, + + "by": "von", + "more_info": "Mehr Info", + "remove": "Mod entfernen", + "remove_dialog_title": "Warnung", + "remove_dialog_text": "Thunderstore Mod entfernen?", + "remove_success": "{modName} entfernt", + "install_success": "{modName} installiert" + } + }, + + "settings": { + "manage_install": "Installation verwalten", + "choose_folder": "Installationsordner wählen", + "nb_ts_mods_per_page": "Anzahl an Thunderstore Mods pro Seite", + "nb_ts_mods_per_page_desc1": "Ändern dieser Einstellung kann die Leistung beim Suchen von Thunderstore Mods beeinflussen.", + "nb_ts_mods_per_page_desc2": "Setze diesen Wert auf 0 um alle Mods auf einer einzelnen Seite anzuzeigen", + "nb_ts_mods_reset": "Standard wiederherstellen", + "language": "Sprache", + "language_select": "Bevorzugte Sprache wählen", + "about": "Über:", + "flightcore_version": "FlightCore Version:", + "testing": "Testen:", + "enable_test_channels": "Testversionen aktivieren", + "dev_mode_enabled_title": "Vorsicht!", + "dev_mod_enabled_text": "Entwicklermodus aktiviert.", + + "repair": { + "title": "Reparieren", + "open_window": "Reparierfenster öffnen", + + "window": { + "title": "FlightCore Reparierfenster", + "warning": "Dieses Fenster enthält verschiedene Funktionen um gängige Probleme mit Northstar und FlightCore zu beheben.", + "disable_all_but_core": "Alle außer notwendige Mods deaktivieren", + "force_reinstall_ns": "Northstar reinstallieren", + "force_delete_temp_dl": "Temporären FlightCore Downloadordner löschen", + "delete_persistent_store": "FlightCore Einstellungen zurücksetzen" + } + } + }, + + "notification": { + "game_folder": { + "new": { + "title": "Neuer Spielordner", + "text": "Spielordner erfolgreich aktualisiert." + }, + + "wrong": { + "title": "Falscher Ordner", + "text": "Der gewählte Ordner enthält keine valide Titanfall2 Installation." + }, + + "not_found": { + "title": "Titanfall2 nicht gefunden!", + "text": "Bitte wähle den Installationsordner manuell aus" + } + }, + + "flightcore_outdated": { + "title": "FlightCore veraltet!", + "text": "Bitte aktualisiere FlightCore.\nDu hast die veraltetet Version {oldVersion}.\nNeuste Version ist {newVersion}!" + } + }, + + "channels": { + "release": { + "switch": { + "text": "Releasekanal zu \"{canal}\" gewechselt." + } + }, + + "names": { + "Northstar": "Northstar", + "NorthstarReleaseCandidate": "Northstar Release Candidate" + } + } +} diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index 561efbba..94a0196b 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -13,6 +13,7 @@ import RepairView from "./views/RepairView.vue"; import {createRouter, createWebHashHistory} from "vue-router"; import en from "./i18n/lang/en.json"; import fr from "./i18n/lang/fr.json"; +import de from "./i18n/lang/de.json"; const app = createApp(App); @@ -22,7 +23,7 @@ export const i18n = createI18n({ locale: 'en', fallbackLocale: 'en', messages: { - en, fr + en, fr, de } }); app.use(i18n); -- cgit v1.2.3