Add and organize comprehensive Swedish translations (sv.json)
- Added extensive Swedish translations for dashboards, reports, bookings, POS components, settings, and common actions. - Reorganized and expanded i18n keys for greater maintainability and consistency across multilingual support. - Aligned sv.json with existing `en.json` and `da.json` structures to ensure seamless integration.
This commit is contained in:
@@ -10,7 +10,8 @@ const languages = [
|
||||
{ code: 'da', name: 'Dansk', flag: '🇩🇰' },
|
||||
{ code: 'en', name: 'English', flag: '🇬🇧' },
|
||||
{ code: 'sv', name: 'Svenska', flag: '🇸🇪' },
|
||||
{ code: 'de', name: 'Deutsch', flag: '🇩🇪' }
|
||||
{ code: 'de', name: 'Deutsch', flag: '🇩🇪' },
|
||||
{ code: 'no', name: 'Norsk', flag: '🇳🇴' }
|
||||
]
|
||||
|
||||
// Get current language
|
||||
|
||||
@@ -39,6 +39,13 @@ const changeLanguage = (lang) => {
|
||||
>
|
||||
DE
|
||||
</button>
|
||||
<button
|
||||
class="lang-btn"
|
||||
:class="{ active: locale === 'no' }"
|
||||
@click="changeLanguage('no')"
|
||||
>
|
||||
NO
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
+3
-1
@@ -3,6 +3,7 @@ import da from './locales/da.json'
|
||||
import en from './locales/en.json'
|
||||
import sv from './locales/sv.json'
|
||||
import de from './locales/de.json'
|
||||
import no from './locales/no.json'
|
||||
|
||||
// Get saved locale from localStorage or use 'da' as default
|
||||
const savedLocale = localStorage.getItem('locale') || 'da'
|
||||
@@ -15,7 +16,8 @@ const i18n = createI18n({
|
||||
da,
|
||||
en,
|
||||
sv,
|
||||
de
|
||||
de,
|
||||
no
|
||||
},
|
||||
// Global injections for $t, $te, etc.
|
||||
globalInjection: true
|
||||
|
||||
+3671
-2430
File diff suppressed because it is too large
Load Diff
+3715
-750
File diff suppressed because it is too large
Load Diff
+3707
-2112
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+3711
-746
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user