Skip to content

Commit

Permalink
Make German translation available
Browse files Browse the repository at this point in the history
  • Loading branch information
took committed Nov 25, 2023
1 parent 10186aa commit ab3aee9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog-api/config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

return [
'locale' => [
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU'],
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'de' => 'de-DE'],
'ignoredRequests' => [
'/debug**',
'/inspect**',
Expand Down
2 changes: 1 addition & 1 deletion blog/config/web/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],

'locale' => [
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'id' => 'id-ID', 'sk' => 'sk-SK'],
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'id' => 'id-ID', 'sk' => 'sk-SK', 'de' => 'de-DE'],
'ignoredRequests' => [
'/debug**',
'/inspect**',
Expand Down
4 changes: 4 additions & 0 deletions blog/resources/views/layout/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
'label' => 'Indonesia',
'url' => $urlGenerator->generateFromCurrent(['_language' => 'id'], fallbackRouteName: 'site/index'),
],
[
'label' => 'German',
'url' => $urlGenerator->generateFromCurrent(['_language' => 'de'], fallbackRouteName: 'site/index'),
],
],
],
[
Expand Down

0 comments on commit ab3aee9

Please sign in to comment.