added german translation

This commit is contained in:
SPRINX0\prochazka
2025-11-18 14:18:19 +01:00
parent afb9ba7ad6
commit a489c7ad8e
3 changed files with 911 additions and 3 deletions

View File

@@ -153,6 +153,7 @@ ORDER BY
{ value: 'en', label: 'English' },
{ value: 'cs', label: 'Čeština' },
{ value: 'sk', label: 'Slovenčina' },
{ value: 'de', label: 'Deutsch' },
]}
on:change={() => {
showModal(ConfirmModal, {

View File

@@ -1,5 +1,6 @@
import cs from '../../../translations/cs.json';
import sk from '../../../translations/sk.json';
import de from '../../../translations/de.json';
import MessageFormat, { MessageFunction } from '@messageformat/core';
import { getStringSettingsValue } from './settings/settingsTools';
@@ -8,6 +9,7 @@ const translations = {
en: {},
cs,
sk,
de,
};
const supportedLanguages = Object.keys(translations);
@@ -107,8 +109,6 @@ export function _tval(x: string | DefferedTranslationResult): string {
return '';
}
export function isDefferedTranslationResult(
x: string | DefferedTranslationResult
): x is DefferedTranslationResult {
export function isDefferedTranslationResult(x: string | DefferedTranslationResult): x is DefferedTranslationResult {
return typeof x !== 'string' && typeof x?._transKey === 'string';
}