Fixed more translations
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user