Fixed more translations

This commit is contained in:
Alexis
2025-03-21 12:03:57 +01:00
parent 53686f03e7
commit 677b7bcaab
6 changed files with 31 additions and 17 deletions

View File

@@ -7,6 +7,6 @@ export function setLang(lang: Language) {
currentLang.set(lang);
}
export function t(key: string): string {
return translations[currentLang.get()][key]
}
export function t(key: string, lang: Language = currentLang.get()): string {
return translations[lang][key]
}

View File

@@ -8,6 +8,7 @@ export const translations: LanguageDict = {
'fr': {
'common.title': 'Titre',
'common.create': 'Créer',
'common.by': 'par',
'continents': 'Continents',
'cities': 'Villes',
'others': 'Autres',
@@ -30,6 +31,7 @@ export const translations: LanguageDict = {
'en': {
'common.title': 'Title',
'common.create': 'Create',
'common.by': 'by',
'continents': 'Continents',
'cities': 'Cities',
'others': 'Others',