Skip to content

Commit

Permalink
Add requested translations (automatic)
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed May 18, 2024
1 parent 3c72bed commit 382ddc3
Show file tree
Hide file tree
Showing 10 changed files with 2,168 additions and 4 deletions.
532 changes: 532 additions & 0 deletions frontend/messages/de.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"english": "English",
"arabic": "Arabic",
"portuguese": "Portuguese",
"spanish": "Spanish",
"german": "German",
"dutch": "Dutch",
"italian": "Italian",
"addThreat": "Add threat",
"addReferenceControl": "Add reference control",
"addAppliedControl": "Add applied control",
Expand Down
532 changes: 532 additions & 0 deletions frontend/messages/es.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"english": "Anglais",
"arabic": "Arabe",
"portuguese": "Portugais",
"spanish": "Espagnol",
"german": "Allemand",
"dutch": "Néerlandais",
"italian": "Italien",
"addThreat": "Ajouter une menace",
"addReferenceControl": "Ajouter une mesure de référence",
"addAppliedControl": "Ajouter une mesure appliquée",
Expand Down
532 changes: 532 additions & 0 deletions frontend/messages/it.json

Large diffs are not rendered by default.

532 changes: 532 additions & 0 deletions frontend/messages/nl.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions frontend/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"english": "Inglês",
"arabic": "Árabe",
"portuguese": "Português",
"spanish": "Espanhol",
"german": "Alemão",
"dutch": "Holandês",
"italian": "Italiano",
"addThreat": "Adicionar ameaça",
"addReferenceControl": "Adicionar controle de referência",
"addAppliedControl": "Adicionar controle aplicado",
Expand Down
2 changes: 1 addition & 1 deletion frontend/project.inlang/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": ["en", "ar", "fr", "pt"],
"languageTags": ["en", "ar", "fr", "pt", "es", "de", "nl", "it"],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js",
Expand Down
12 changes: 10 additions & 2 deletions frontend/src/lib/components/SideBar/SideBarFooter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
french: m.french(),
english: m.english(),
arabic: m.arabic(),
portuguese: m.portuguese()
portuguese: m.portuguese(),
spanish: m.spanish(),
german: m.german(),
dutch: m.dutch(),
italian: m.italian(),
};
const modalStore = getModalStore();
Expand All @@ -21,7 +25,11 @@
fr: 'Français',
en: 'English',
ar: 'العربية',
pt: 'Português'
pt: 'Português',
es: 'Español',
nl: 'Nederlands',
de: 'Deutsch',
it: 'Italiano',
};
let value = languageTag();
Expand Down
18 changes: 17 additions & 1 deletion frontend/src/lib/utils/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ export const LOCALE_MAP = {
pt: {
name: 'portuguese',
flag: '🇧🇷'
}
},
es: {
name: 'spanish',
flag: '🇪🇸'
},
nl : {
name: 'dutch',
flag: '🇳🇱'
},
it: {
name: 'italian',
flag: '🇮🇹'
},
};

export function toCamelCase(str: string) {
Expand All @@ -43,6 +55,10 @@ export function localItems(languageTag: string): LocalItems {
english: m.english({ languageTag: languageTag }),
arabic: m.arabic({ languageTag: languageTag }),
portuguese: m.portuguese({ languageTag: languageTag }),
spanish: m.spanish({ languageTag: languageTag }),
german: m.german({ languageTag: languageTag }),
dutch: m.dutch({ languageTag: languageTag }),
italian: m.italian({ languageTag: languageTag }),
home: m.home({ languageTag: languageTag }),
edit: m.edit({ languageTag: languageTag }),
overview: m.overview({ languageTag: languageTag }),
Expand Down

0 comments on commit 382ddc3

Please sign in to comment.