🇸🇪: Swedish Translation (#940)

* Language translation: swedish translation

* fix: remove unwanted row in Sv translation

remove com_nav_language

---------

Co-authored-by: Marcus Nätteldal <marcus.natteldal@ltu.se>
This commit is contained in:
Marcus Nätteldal 2023-09-15 01:46:06 +02:00 committed by GitHub
parent 9491b753c3
commit ccb46164c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 232 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import Spanish from './languages/Es';
import French from './languages/Fr';
import Russian from './languages/Ru';
import Japanese from './languages/Jp';
import Swedish from './languages/Sv';
// === import additional language files here === //
// New method on String allow using "{\d}" placeholder for
@ -59,6 +60,9 @@ export const getTranslations = (langCode: string) => {
if (langCode === 'jp') {
return Japanese;
}
if (langCode === 'sv') {
return Swedish;
}
// === add conditionals here for additional languages here === //
return English; // default to English