Localization test (#331)

* Localization test

* More translations

* More translations

* Setup the tooling and validation for the localization

* More translations

* Docs
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-03-17 22:22:53 -04:00
1 parent 403ed94e97
commit 7d9817994c
36 files changed
+789 -51

No files matched your search

+9 -1
View File
@@ -46,6 +46,12 @@
"regex": "\\?[\\.|\\[|\\(|@]",
"regexFlags": "ig",
"message": "No optional chaning (var1?.property). Do a type check instead."
},
{
"code": "NO_TRANSLATE_STRING_LITERAL",
"regex": "\\bTr\\s*\\(\\s*\"[^\\\"]*\"\\s*\\)",
"regexFlags": "ig",
"message": "Tr(\"String\") is not allowed. Use Tr(Locale.Key) instead."
}
],
"files": [
@@ -56,6 +62,7 @@
"!**/*.psd",
"!**/*.svg",
"!**/*.svg.meta.json5",
"locale/**",
"config/**",
"lib/**",
"www/**",
@@ -79,7 +86,8 @@
"../tools/bs-plugins/logger-plugin.ts",
"../tools/bs-plugins/image-gen-plugin.ts",
"../tools/bs-plugins/type-gen-plugin.ts",
"../tools/bs-plugins/web-server-plugin.ts"
"../tools/bs-plugins/web-server-plugin.ts",
"../tools/bs-plugins/locale-validation-plugin.ts"
],
"retainStagingDir": true,
"require": [
+3 -1
View File
@@ -8,6 +8,7 @@
"!**/*.psd",
"!**/*.svg",
"!**/*.svg.meta.json5",
"locale/**",
"config/**",
"lib/**",
"www/**",
@@ -29,7 +30,8 @@
"../tools/bs-plugins/logger-plugin.ts",
"../tools/bs-plugins/image-gen-plugin.ts",
"../tools/bs-plugins/type-gen-plugin.ts",
"../tools/bs-plugins/web-server-plugin.ts"
"../tools/bs-plugins/web-server-plugin.ts",
"../tools/bs-plugins/locale-validation-plugin.ts"
],
"rooibos": {
"logLevel": 2,