Skip to content

Commit 37db715

Browse files
authored
feat: Add German language support (#1256)
* feat: Add German language support Adds the complete German translation (de) for the frontend and backend. This includes the source JSON files, the generated resource files from the translator tool, and updates to all necessary configuration files to register the new language. Closes #1255 * fix: correct translate.sh
1 parent 762f445 commit 37db715

File tree

9 files changed

+4461
-6
lines changed

9 files changed

+4461
-6
lines changed

backend/i18n/frontend_de.json

Lines changed: 1302 additions & 0 deletions
Large diffs are not rendered by default.

backend/i18n/source/backend_de.json

Lines changed: 442 additions & 0 deletions
Large diffs are not rendered by default.

backend/i18n/source/frontend_de.json

Lines changed: 1302 additions & 0 deletions
Large diffs are not rendered by default.

backend/i18n/translate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
cd translator/Squidex.Translator
33

4-
/usr/local/share/dotnet/dotnet run --no-restore run translate check-backend ../../../..
5-
/usr/local/share/dotnet/dotnet run --no-restore run translate check-frontend ../../../..
4+
/usr/local/share/dotnet/dotnet run --no-restore translate check-backend ../../../..
5+
/usr/local/share/dotnet/dotnet run --no-restore translate check-frontend ../../../..
66

7-
/usr/local/share/dotnet/dotnet run --no-restore run translate gen-frontend ../../../..
8-
/usr/local/share/dotnet/dotnet run --no-restore run translate gen-backend ../../../..
7+
/usr/local/share/dotnet/dotnet run --no-restore translate gen-frontend ../../../..
8+
/usr/local/share/dotnet/dotnet run --no-restore translate gen-backend ../../../..
99

1010
cd ..\..

backend/i18n/translator/Squidex.Translator/Commands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private static (DirectoryInfo, TranslationService) Setup(TranslateArguments argu
140140
throw new ArgumentException("Folder does not exist.", nameof(arguments));
141141
}
142142

143-
var supportedLocales = new string[] { "en", "nl", "it", "zh", "pt", "fr" };
143+
var supportedLocales = new string[] { "en", "nl", "it", "zh", "pt", "fr", "de" };
144144

145145
var locales = supportedLocales;
146146

backend/src/Squidex.Shared/Texts.de.resx

Lines changed: 1405 additions & 0 deletions
Large diffs are not rendered by default.

backend/src/Squidex/Config/Web/WebExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static IApplicationBuilder UseSquidexLocalCache(this IApplicationBuilder
3232

3333
public static IApplicationBuilder UseSquidexLocalization(this IApplicationBuilder app)
3434
{
35-
var supportedCultures = new[] { "en", "nl", "it", "zh", "pt", "fr" };
35+
var supportedCultures = new[] { "en", "nl", "it", "zh", "pt", "fr", "de" };
3636

3737
var localizationOptions = new RequestLocalizationOptions()
3838
.SetDefaultCulture(supportedCultures[0])

backend/src/Squidex/Squidex.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
<EmbeddedResource Include="..\..\i18n\frontend_pt.json" Link="Areas\Frontend\Resources\frontend_pt.json" />
150150
<EmbeddedResource Include="..\..\i18n\frontend_zh.json" Link="Areas\Frontend\Resources\frontend_zh.json" />
151151
<EmbeddedResource Include="..\..\i18n\frontend_fr.json" Link="Areas\Frontend\Resources\frontend_fr.json" />
152+
<EmbeddedResource Include="..\..\i18n\frontend_de.json" Link="Areas\Frontend\Resources\frontend_de.json" />
152153
</ItemGroup>
153154

154155
<ItemGroup>

frontend/src/app/shared/state/ui-languages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ export module UILanguages {
2626
}, {
2727
iso2Code: 'pt',
2828
localName: 'Portuguese',
29+
}, {
30+
iso2Code: 'de',
31+
localName: 'Deutsch',
2932
}];
3033
}

0 commit comments

Comments
 (0)