Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set the default locale to just 'en'

Roland Geiderb963da1dc753
diff --git a/angular/angular.json b/angular/angular.json
index 0d821c63c..c1db3f4f3 100644
--- a/angular/angular.json
+++ b/angular/angular.json
@@ -18,7 +18,7 @@
"sourceRoot": "src",
"prefix": "app",
"i18n": {
- "sourceLocale": "en-US",
+ "sourceLocale": "en",
"locales": {
"de": "src/locale/messages.de.xlf"
}
@@ -47,7 +47,7 @@
"sourceMap": true,
"optimization": false,
"namedChunks": true,
- "localize": ["de"]
+ "localize": ["en"]
},
"configurations": {
"production": {
diff --git a/angular/src/locale/README.md b/angular/src/locale/README.md
new file mode 100644
index 000000000..5798e5ef0
--- /dev/null
+++ b/angular/src/locale/README.md
@@ -0,0 +1,6 @@
+Run on angular root folder
+
+
+```shell
+ng extract-i18n --format=xliff2 --output-path src/locale/
+```
diff --git a/angular/src/locale/messages.xlf b/angular/src/locale/messages.xlf
index f6f10a94f..78a473c3a 100644
--- a/angular/src/locale/messages.xlf
+++ b/angular/src/locale/messages.xlf
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en-US">
+<xliff version="2.0" xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en">
<file id="ngi18n" original="ng.template">
<unit id="ngb.alert.close">
<notes>
@@ -270,7 +270,7 @@
</unit>
<unit id="5848348023107769657">
<notes>
- <note category="location">src/app/weight/weight-chart/weight-chart.component.ts:50</note>
+ <note category="location">src/app/weight/weight-chart/weight-chart.component.ts:63</note>
<note category="location">src/app/weight/weight-edit/weight-edit.component.html:14</note>
<note category="location">src/app/weight/weight-list/weight-list.component.html:13</note>
</notes>