From 55cddecb6c56ddfcb16bbf4ca154e8724e1eaa3f Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 27 Oct 2017 09:51:19 +0100 Subject: [PATCH] Added more translations --- src/Ombi/ClientApp/app/app.component.ts | 2 +- src/Ombi/wwwroot/translations/da.json | 4 ++++ src/Ombi/wwwroot/translations/es.json | 4 ++++ src/Ombi/wwwroot/translations/fr.json | 5 +++++ src/Ombi/wwwroot/translations/it.json | 4 ++++ src/Ombi/wwwroot/translations/nl.json | 4 ++++ 6 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/Ombi/wwwroot/translations/da.json create mode 100644 src/Ombi/wwwroot/translations/es.json create mode 100644 src/Ombi/wwwroot/translations/fr.json create mode 100644 src/Ombi/wwwroot/translations/it.json create mode 100644 src/Ombi/wwwroot/translations/nl.json diff --git a/src/Ombi/ClientApp/app/app.component.ts b/src/Ombi/ClientApp/app/app.component.ts index 471fcc760..df054f7d3 100644 --- a/src/Ombi/ClientApp/app/app.component.ts +++ b/src/Ombi/ClientApp/app/app.component.ts @@ -32,7 +32,7 @@ export class AppComponent implements OnInit { // See if we can match the supported langs with the current browser lang const browserLang: string = translate.getBrowserLang(); - this.translate.use(browserLang.match(/en|fr/) ? browserLang : "en"); + this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl/) ? browserLang : "en"); } public ngOnInit() { diff --git a/src/Ombi/wwwroot/translations/da.json b/src/Ombi/wwwroot/translations/da.json new file mode 100644 index 000000000..404613615 --- /dev/null +++ b/src/Ombi/wwwroot/translations/da.json @@ -0,0 +1,4 @@ +{ + "Login": { + } +} \ No newline at end of file diff --git a/src/Ombi/wwwroot/translations/es.json b/src/Ombi/wwwroot/translations/es.json new file mode 100644 index 000000000..404613615 --- /dev/null +++ b/src/Ombi/wwwroot/translations/es.json @@ -0,0 +1,4 @@ +{ + "Login": { + } +} \ No newline at end of file diff --git a/src/Ombi/wwwroot/translations/fr.json b/src/Ombi/wwwroot/translations/fr.json new file mode 100644 index 000000000..f62a2139e --- /dev/null +++ b/src/Ombi/wwwroot/translations/fr.json @@ -0,0 +1,5 @@ +{ + "Login": { + + } +} \ No newline at end of file diff --git a/src/Ombi/wwwroot/translations/it.json b/src/Ombi/wwwroot/translations/it.json new file mode 100644 index 000000000..404613615 --- /dev/null +++ b/src/Ombi/wwwroot/translations/it.json @@ -0,0 +1,4 @@ +{ + "Login": { + } +} \ No newline at end of file diff --git a/src/Ombi/wwwroot/translations/nl.json b/src/Ombi/wwwroot/translations/nl.json new file mode 100644 index 000000000..404613615 --- /dev/null +++ b/src/Ombi/wwwroot/translations/nl.json @@ -0,0 +1,4 @@ +{ + "Login": { + } +} \ No newline at end of file