feat: add bg and pl to language switcher

This should help translators see their efforts come to fruition.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2024-06-14 18:04:16 +02:00
parent 519c6a045a
commit 3e4e725347
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
5 changed files with 459 additions and 457 deletions

View file

@ -15,16 +15,18 @@ import { init, register } from 'svelte-i18n';
const defaultLocale = 'en'; const defaultLocale = 'en';
register('bg', () => import('./locales/bg.json'));
register('de', () => import('./locales/de.json')); register('de', () => import('./locales/de.json'));
register('en', () => import('./locales/en.json')); register('en', () => import('./locales/en.json'));
register('he', () => import('./locales/he.json')); register('he', () => import('./locales/he.json'));
register('pl', () => import('./locales/pl.json'));
init({ init({
fallbackLocale: defaultLocale, fallbackLocale: defaultLocale,
initialLocale: browser ? window.navigator.language : defaultLocale initialLocale: browser ? window.navigator.language : defaultLocale
}); });
export function mapLocaleToDir(locale: 'de' | 'en' | 'he'): 'ltr' | 'rtl' { export function mapLocaleToDir(locale: 'bg' | 'de' | 'en' | 'he' | 'pl'): 'ltr' | 'rtl' {
if (['he'].includes(locale)) { if (['he'].includes(locale)) {
return 'rtl'; return 'rtl';
} }

View file

@ -1,116 +1,116 @@
{ {
"page": { "page": {
"import_project": { "import_project": {
"form": { "form": {
"avatar": "Аватар", "avatar": "Аватар",
"components": "Компоненти", "components": "Компоненти",
"fields": { "fields": {
"avatar": { "avatar": {
"label": "" "label": ""
}, },
"description": { "description": {
"label": "", "label": "",
"placeholder": "" "placeholder": ""
}, },
"issues": { "issues": {
"label": "" "label": ""
}, },
"name": { "name": {
"error": "", "error": "",
"label": "", "label": "",
"placeholder": "" "placeholder": ""
}, },
"pr": { "pr": {
"label": "" "label": ""
}, },
"repository": { "repository": {
"hint": "", "hint": "",
"label": "", "label": "",
"placeholder": "" "placeholder": ""
} }
}, },
"submit": "" "submit": ""
}, },
"heading": "", "heading": "",
"intro": "" "intro": ""
}, },
"login": { "login": {
"form": { "form": {
"fields": { "fields": {
"account": { "account": {
"label": "" "label": ""
}, },
"passphrase": { "passphrase": {
"label": "", "label": "",
"placeholder": "" "placeholder": ""
}, },
"server": { "server": {
"label": "" "label": ""
} }
}, },
"reset": "", "reset": "",
"submit": "Подаване", "submit": "Подаване",
"validation": { "validation": {
"incorrect": "", "incorrect": "",
"missing": "" "missing": ""
} }
}, },
"heading": "", "heading": "",
"intro": "" "intro": ""
}, },
"profile": { "profile": {
"activities": { "activities": {
"block_or_report": "", "block_or_report": "",
"like": "" "like": ""
}, },
"heading": "", "heading": "",
"history": { "history": {
"activities": { "activities": {
"setup": { "setup": {
"description": "", "description": "",
"summary": "" "summary": ""
} }
}, },
"heading": "" "heading": ""
}, },
"projects": { "projects": {
"add_or_import": "", "add_or_import": "",
"empty": "", "empty": "",
"heading": "" "heading": ""
} }
}, },
"projects": { "projects": {
"file_table": { "file_table": {
"updated": "" "updated": ""
}, },
"form": { "form": {
"fields": { "fields": {
"more_filters": { "more_filters": {
"submit": "" "submit": ""
}, },
"projects": { "projects": {
"submit": "" "submit": ""
}, },
"search": { "search": {
"placeholder": "", "placeholder": "",
"submit": "" "submit": ""
}, },
"starred": { "starred": {
"submit": "" "submit": ""
} }
} }
}, },
"nav": { "nav": {
"next": "", "next": "",
"previous": "" "previous": ""
}, },
"table": { "table": {
"heading": { "heading": {
"last_updated": "", "last_updated": "",
"name": "" "name": ""
} }
} }
}, },
"welcome": "" "welcome": ""
} }
} }

View file

@ -1,116 +1,116 @@
{ {
"page": { "page": {
"import_project": { "import_project": {
"form": { "form": {
"avatar": "Avatar", "avatar": "Avatar",
"components": "Komponenten", "components": "Komponenten",
"fields": { "fields": {
"avatar": { "avatar": {
"label": "Bild hochladen" "label": "Bild hochladen"
}, },
"description": { "description": {
"label": "Beschreibung", "label": "Beschreibung",
"placeholder": "Beschreibe das Projekt in unter 100 Zeichen..." "placeholder": "Beschreibe das Projekt in unter 100 Zeichen..."
}, },
"issues": { "issues": {
"label": "Issues" "label": "Issues"
}, },
"name": { "name": {
"error": "Dieses Feld ist erforderlich", "error": "Dieses Feld ist erforderlich",
"label": "Name", "label": "Name",
"placeholder": "Name des Projekts..." "placeholder": "Name des Projekts..."
}, },
"pr": { "pr": {
"label": "Pullrequest" "label": "Pullrequest"
}, },
"repository": { "repository": {
"hint": "optional: von Git-Repository importieren", "hint": "optional: von Git-Repository importieren",
"label": "Repository", "label": "Repository",
"placeholder": "URL des Git-Repositorys" "placeholder": "URL des Git-Repositorys"
} }
}, },
"submit": "Projekt erstellen" "submit": "Projekt erstellen"
}, },
"heading": "Projekt erstellen", "heading": "Projekt erstellen",
"intro": "Neues F2-Projekt zu Anvil hinzufügen." "intro": "Neues F2-Projekt zu Anvil hinzufügen."
}, },
"login": { "login": {
"form": { "form": {
"fields": { "fields": {
"account": { "account": {
"label": "Accountname" "label": "Accountname"
}, },
"passphrase": { "passphrase": {
"label": "Passwort", "label": "Passwort",
"placeholder": "Passwort" "placeholder": "Passwort"
}, },
"server": { "server": {
"label": "F2-Server" "label": "F2-Server"
} }
}, },
"reset": "Passwort zurücksetzen", "reset": "Passwort zurücksetzen",
"submit": "Einloggen", "submit": "Einloggen",
"validation": { "validation": {
"incorrect": "Accountname oder Kennwort sind falsch.", "incorrect": "Accountname oder Kennwort sind falsch.",
"missing": "Das Account-Feld ist verbindlich." "missing": "Das Account-Feld ist verbindlich."
} }
}, },
"heading": "Einloggen", "heading": "Einloggen",
"intro": "Die Einwahldaten ausfüllen um Anvil mit deinem F2-Account zu benutzen." "intro": "Die Einwahldaten ausfüllen um Anvil mit deinem F2-Account zu benutzen."
}, },
"profile": { "profile": {
"activities": { "activities": {
"block_or_report": "{blockElementOpen}blockieren{blockElementClose} oder {reportElementOpen}melden{reportElementClose}", "block_or_report": "{blockElementOpen}blockieren{blockElementClose} oder {reportElementOpen}melden{reportElementClose}",
"like": "Gefällt mir" "like": "Gefällt mir"
}, },
"heading": "Profil für", "heading": "Profil für",
"history": { "history": {
"activities": { "activities": {
"setup": { "setup": {
"description": "Das F2-Konto @{username}@{instance} wurde erfolgreich innerhalb von {created_with} erstellt", "description": "Das F2-Konto @{username}@{instance} wurde erfolgreich innerhalb von {created_with} erstellt",
"summary": "Kontoeinstellungen" "summary": "Kontoeinstellungen"
} }
}, },
"heading": "Aktivitäten" "heading": "Aktivitäten"
}, },
"projects": { "projects": {
"add_or_import": "{addElementOpen}Ein Projekt hinzufügen{addElementClose} oder {importElementOpen}Ein Projekt importieren{importElementClose}.", "add_or_import": "{addElementOpen}Ein Projekt hinzufügen{addElementClose} oder {importElementOpen}Ein Projekt importieren{importElementClose}.",
"empty": "Bisher keine Projekte hinzugefügt.", "empty": "Bisher keine Projekte hinzugefügt.",
"heading": "Projekte" "heading": "Projekte"
} }
}, },
"projects": { "projects": {
"file_table": { "file_table": {
"updated": "Aktualisiert: {relativeTime}" "updated": "Aktualisiert: {relativeTime}"
}, },
"form": { "form": {
"fields": { "fields": {
"more_filters": { "more_filters": {
"submit": "Weitere Filter" "submit": "Weitere Filter"
}, },
"projects": { "projects": {
"submit": "Meine Projekte" "submit": "Meine Projekte"
}, },
"search": { "search": {
"placeholder": "Suchen oder filtern", "placeholder": "Suchen oder filtern",
"submit": "Absenden" "submit": "Absenden"
}, },
"starred": { "starred": {
"submit": "Favorisiert" "submit": "Favorisiert"
} }
} }
}, },
"nav": { "nav": {
"next": "Weiter", "next": "Weiter",
"previous": "Zurück" "previous": "Zurück"
}, },
"table": { "table": {
"heading": { "heading": {
"last_updated": "Letzte Aktualisierung", "last_updated": "Letzte Aktualisierung",
"name": "Name" "name": "Name"
} }
} }
}, },
"welcome": "Willkommen bei Anvil!" "welcome": "Willkommen bei Anvil!"
} }
} }

View file

@ -1,116 +1,116 @@
{ {
"page": { "page": {
"import_project": { "import_project": {
"form": { "form": {
"avatar": "Avatar", "avatar": "Avatar",
"components": "Components", "components": "Components",
"fields": { "fields": {
"avatar": { "avatar": {
"label": "Upload image" "label": "Upload image"
}, },
"description": { "description": {
"label": "Description", "label": "Description",
"placeholder": "Describe the project in less than 100 characters…" "placeholder": "Describe the project in less than 100 characters…"
}, },
"issues": { "issues": {
"label": "Issues" "label": "Issues"
}, },
"name": { "name": {
"error": "This field is required", "error": "This field is required",
"label": "Name", "label": "Name",
"placeholder": "Name of the project…" "placeholder": "Name of the project…"
}, },
"pr": { "pr": {
"label": "Pull Requests" "label": "Pull Requests"
}, },
"repository": { "repository": {
"hint": "optional: import from git repo", "hint": "optional: import from git repo",
"label": "Repository", "label": "Repository",
"placeholder": "url of git repository…" "placeholder": "url of git repository…"
} }
}, },
"submit": "Create project" "submit": "Create project"
}, },
"heading": "Create project", "heading": "Create project",
"intro": "Add a new F2 project to Anvil." "intro": "Add a new F2 project to Anvil."
}, },
"login": { "login": {
"form": { "form": {
"fields": { "fields": {
"account": { "account": {
"label": "Account name" "label": "Account name"
}, },
"passphrase": { "passphrase": {
"label": "Passphrase", "label": "Passphrase",
"placeholder": "password" "placeholder": "password"
}, },
"server": { "server": {
"label": "F2 server" "label": "F2 server"
} }
}, },
"reset": "Reset passphrase", "reset": "Reset passphrase",
"submit": "Log in", "submit": "Log in",
"validation": { "validation": {
"incorrect": "Account or password wrong.", "incorrect": "Account or password wrong.",
"missing": "The account field is required." "missing": "The account field is required."
} }
}, },
"heading": "Log in", "heading": "Log in",
"intro": "To use Anvil with your F2 account, fill in your credentials." "intro": "To use Anvil with your F2 account, fill in your credentials."
}, },
"profile": { "profile": {
"activities": { "activities": {
"block_or_report": "{blockElementOpen}block{blockElementClose} or {reportElementOpen}report{reportElementClose}", "block_or_report": "{blockElementOpen}block{blockElementClose} or {reportElementOpen}report{reportElementClose}",
"like": "Like" "like": "Like"
}, },
"heading": "Profile for", "heading": "Profile for",
"history": { "history": {
"activities": { "activities": {
"setup": { "setup": {
"description": "The F2 account @{username}@{instance} was successfully set up within {created_with}", "description": "The F2 account @{username}@{instance} was successfully set up within {created_with}",
"summary": "account set up" "summary": "account set up"
} }
}, },
"heading": "Activities" "heading": "Activities"
}, },
"projects": { "projects": {
"add_or_import": "{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.", "add_or_import": "{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",
"empty": "No projects added yet.", "empty": "No projects added yet.",
"heading": "Projects" "heading": "Projects"
} }
}, },
"projects": { "projects": {
"file_table": { "file_table": {
"updated": "Updated {relativeTime}" "updated": "Updated {relativeTime}"
}, },
"form": { "form": {
"fields": { "fields": {
"more_filters": { "more_filters": {
"submit": "More Filters" "submit": "More Filters"
}, },
"projects": { "projects": {
"submit": "My projects" "submit": "My projects"
}, },
"search": { "search": {
"placeholder": "Search or filter", "placeholder": "Search or filter",
"submit": "Submit" "submit": "Submit"
}, },
"starred": { "starred": {
"submit": "Starred" "submit": "Starred"
} }
} }
}, },
"nav": { "nav": {
"next": "Next", "next": "Next",
"previous": "Previous" "previous": "Previous"
}, },
"table": { "table": {
"heading": { "heading": {
"last_updated": "Last updated", "last_updated": "Last updated",
"name": "Name" "name": "Name"
} }
} }
}, },
"welcome": "Welcome to Anvil!" "welcome": "Welcome to Anvil!"
} }
} }

View file

@ -1,116 +1,116 @@
{ {
"page": { "page": {
"import_project": { "import_project": {
"form": { "form": {
"avatar": "Awatar", "avatar": "Awatar",
"components": "Komponenty", "components": "Komponenty",
"fields": { "fields": {
"avatar": { "avatar": {
"label": "Prześlij obraz" "label": "Prześlij obraz"
}, },
"description": { "description": {
"label": "Opis", "label": "Opis",
"placeholder": "Opisz projekt w mniej niż 100 znaków…" "placeholder": "Opisz projekt w mniej niż 100 znaków…"
}, },
"issues": { "issues": {
"label": "Zgłoszenia" "label": "Zgłoszenia"
}, },
"name": { "name": {
"error": "To pole jest wymagane", "error": "To pole jest wymagane",
"label": "Nazwa", "label": "Nazwa",
"placeholder": "Nazwa projektu…" "placeholder": "Nazwa projektu…"
}, },
"pr": { "pr": {
"label": "" "label": ""
}, },
"repository": { "repository": {
"hint": "opcjonalnie: zaimportuj repozytorium git", "hint": "opcjonalnie: zaimportuj repozytorium git",
"label": "Repozytorium", "label": "Repozytorium",
"placeholder": "Adres URL repozytorium git…" "placeholder": "Adres URL repozytorium git…"
} }
}, },
"submit": "Stwórz projekt" "submit": "Stwórz projekt"
}, },
"heading": "Stwórz projekt", "heading": "Stwórz projekt",
"intro": "Dodaj nowy projekt F2 do Anvil." "intro": "Dodaj nowy projekt F2 do Anvil."
}, },
"login": { "login": {
"form": { "form": {
"fields": { "fields": {
"account": { "account": {
"label": "Nazwa konta" "label": "Nazwa konta"
}, },
"passphrase": { "passphrase": {
"label": "Fraza dostępu", "label": "Fraza dostępu",
"placeholder": "Hasło" "placeholder": "Hasło"
}, },
"server": { "server": {
"label": "Serwer F2" "label": "Serwer F2"
} }
}, },
"reset": "Zresetuj frazę dostępu", "reset": "Zresetuj frazę dostępu",
"submit": "Zaloguj się", "submit": "Zaloguj się",
"validation": { "validation": {
"incorrect": "Nazwa konta lub hasło jest niepoprawne.", "incorrect": "Nazwa konta lub hasło jest niepoprawne.",
"missing": "Pole nazwy konta jest wymagane." "missing": "Pole nazwy konta jest wymagane."
} }
}, },
"heading": "Logowanie", "heading": "Logowanie",
"intro": "" "intro": ""
}, },
"profile": { "profile": {
"activities": { "activities": {
"block_or_report": "{blockElementOpen}zablokuj{blockElementClose} lub {reportElementOpen}zgłoś{reportElementClose}", "block_or_report": "{blockElementOpen}zablokuj{blockElementClose} lub {reportElementOpen}zgłoś{reportElementClose}",
"like": "Polub" "like": "Polub"
}, },
"heading": "Profil dla", "heading": "Profil dla",
"history": { "history": {
"activities": { "activities": {
"setup": { "setup": {
"description": "Konto F2 @{username}@{instance} zostało poprawnie ustawione z {created_with}", "description": "Konto F2 @{username}@{instance} zostało poprawnie ustawione z {created_with}",
"summary": "" "summary": ""
} }
}, },
"heading": "Aktywność" "heading": "Aktywność"
}, },
"projects": { "projects": {
"add_or_import": "{addElementOpen}Dodaj{addElementClose} lub {importElementOpen}zaimportuj projekt{importElementClose}.", "add_or_import": "{addElementOpen}Dodaj{addElementClose} lub {importElementOpen}zaimportuj projekt{importElementClose}.",
"empty": "Nie dodano jeszcze żadnego projektu.", "empty": "Nie dodano jeszcze żadnego projektu.",
"heading": "Projekty" "heading": "Projekty"
} }
}, },
"projects": { "projects": {
"file_table": { "file_table": {
"updated": "Zaktualizowano {relativeTime}" "updated": "Zaktualizowano {relativeTime}"
}, },
"form": { "form": {
"fields": { "fields": {
"more_filters": { "more_filters": {
"submit": "Więcej filtrów" "submit": "Więcej filtrów"
}, },
"projects": { "projects": {
"submit": "Moje projekty" "submit": "Moje projekty"
}, },
"search": { "search": {
"placeholder": "Wyszukaj lub filtruj", "placeholder": "Wyszukaj lub filtruj",
"submit": "Prześlij" "submit": "Prześlij"
}, },
"starred": { "starred": {
"submit": "Dodano do ulubionych" "submit": "Dodano do ulubionych"
} }
} }
}, },
"nav": { "nav": {
"next": "Dalej", "next": "Dalej",
"previous": "Wstecz" "previous": "Wstecz"
}, },
"table": { "table": {
"heading": { "heading": {
"last_updated": "Ostatnio zaktualizowano", "last_updated": "Ostatnio zaktualizowano",
"name": "Nazwa" "name": "Nazwa"
} }
} }
}, },
"welcome": "Witamy w Anvil!" "welcome": "Witamy w Anvil!"
} }
} }