This commit is contained in:
Florian THIERRY
2024-09-22 12:27:59 +02:00
parent 6c89562dc3
commit 9cf47f0e2a
3 changed files with 8 additions and 14 deletions

View File

@@ -16,7 +16,10 @@
"i18n": {
"sourceLocale": "en",
"locales": {
"fr": "src/locale/messages-fr.json"
"fr": {
"translation": "src/locale/messages-fr.json"
}
}
},
"architect": {

View File

@@ -35,18 +35,9 @@ http {
}
# Everything under the Angular app is always redirected to Angular in the correct language
location ~ ^/fr/ {
alias /usr/share/nginx/html/fr/;
try_files $uri$args $uri$args/ /fr/index.html?$args;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~ ^/en/ {
alias /usr/share/nginx/html/en/;
try_files $uri$args $uri$args/ /en/index.html?$args;
location ~ ^/(fr|en)/ {
alias /usr/share/nginx/html/$1/;
try_files $uri /$1/index.html?$args;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;