Skip to content

Commit

Permalink
fix(L10n): fix broken support for French (fr) and German (de)
Browse files Browse the repository at this point in the history
  • Loading branch information
eketorp authored and adrianschmidt committed Oct 8, 2024
1 parent 4025c47 commit 8cf8620
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/global/translations.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import da from '../translations/da';
import de from '../translations/de';
import en from '../translations/en';
import fi from '../translations/fi';
import fr from '../translations/fr';
import nl from '../translations/nl';
import no from '../translations/no';
import sv from '../translations/sv';

const allTranslations = { da: da, en: en, fi: fi, no: no, nl: nl, sv: sv };
const allTranslations = {
da: da,
de: de,
en: en,
fi: fi,
fr: fr,
no: no,
nl: nl,
sv: sv,
};

export class Translations {
public get(key, language = 'en') {
Expand Down
40 changes: 40 additions & 0 deletions src/translations/de.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export default {
remove: 'Entfernen',
save: 'Speichern',
cancel: 'Abbrechen',
loading: 'Laden…',
'callout.note': 'Hinweis',
'callout.important': 'Wichtig',
'callout.tip': 'Tipp',
'callout.caution': 'Vorsicht',
'callout.warning': 'Warnung',
'date-picker.today': 'Heute',
'date-picker.month.heading': 'Monat',
'date-picker.quarter.heading': 'Quartal',
'date-picker.year.heading': 'Jahr',
'chip-set.clear-all': 'Alles löschen',
'snackbar.dismiss': 'Schließen',
'file.drag-and-drop-tips':
'Ziehen Sie Ihre Datei hierher oder klicken Sie, um zu durchsuchen.',
'file-viewer.message.unsupported-filetype':
'Diese Datei kann nicht angezeigt werden!',
'file-viewer.download': 'Herunterladen',
'file-viewer.exit-fullscreen': 'Vollbildmodus beenden',
'file-viewer.open-in-fullscreen': 'Im Vollbildmodus öffnen',
'file-viewer.open-in-new-tab': 'In einem neuen Tab öffnen',
'file-viewer.more-actions': 'Mehr…',
'editor-menu.bold': 'Fett',
'editor-menu.italic': 'Kursiv',
'editor-menu.h1': 'Überschrift 1',
'editor-menu.h2': 'Überschrift 2',
'editor-menu.h3': 'Überschrift 3',
'editor-menu.bulleted-list': 'Aufzählungsliste',
'editor-menu.numbered-list': 'Nummerierte Liste',
'editor-menu.blockquote': 'Zitatblock',
'editor-menu.link': 'Link',
'editor-link-menu.text': 'Text',
'editor-link-menu.link': 'Link',
'editor-menu.code-block': 'Codeblock',
'editor-menu.code': 'Code',
'progress-bar': 'Fortschrittsbalken',
};
40 changes: 40 additions & 0 deletions src/translations/fr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export default {
remove: 'Supprimer',
save: 'Enregistrer',
cancel: 'Annuler',
loading: 'Chargement…',
'callout.note': 'Note',
'callout.important': 'Important',
'callout.tip': 'Conseil',
'callout.caution': 'Prudence',
'callout.warning': 'Avertissement',
'date-picker.today': "Aujourd'hui",
'date-picker.month.heading': 'Mois',
'date-picker.quarter.heading': 'Trimestre',
'date-picker.year.heading': 'Année',
'chip-set.clear-all': 'Tout effacer',
'snackbar.dismiss': 'Fermer',
'file.drag-and-drop-tips':
'Glissez-déposez votre fichier ici, ou cliquez pour parcourir.',
'file-viewer.message.unsupported-filetype':
"Impossible d'afficher ce fichier!",
'file-viewer.download': 'Télécharger',
'file-viewer.exit-fullscreen': 'Quitter le mode plein écran',
'file-viewer.open-in-fullscreen': 'Ouvrir en plein écran',
'file-viewer.open-in-new-tab': 'Ouvrir dans un nouvel onglet',
'file-viewer.more-actions': 'Plus…',
'editor-menu.bold': 'Gras',
'editor-menu.italic': 'Italique',
'editor-menu.h1': 'Titre 1',
'editor-menu.h2': 'Titre 2',
'editor-menu.h3': 'Titre 3',
'editor-menu.bulleted-list': 'Liste à puces',
'editor-menu.numbered-list': 'Liste numérotée',
'editor-menu.blockquote': 'Bloc de citation',
'editor-menu.link': 'Lien',
'editor-link-menu.text': 'Texte',
'editor-link-menu.link': 'Lien',
'editor-menu.code-block': 'Bloc de code',
'editor-menu.code': 'Code',
'progress-bar': 'Barre de progression',
};

0 comments on commit 8cf8620

Please sign in to comment.