fix chinese (taiwan) meshagent translations #7520
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Dec 28, 2025 at 18:42 UTC
e7da703e2e4bf7b7a71a1290be325989b11f0c5b
1 file changed
+6
-2
meshcentral.js
+6
-2
@@ -1877,8 +1877,12 @@ function CreateMeshCentralServer(config, args) {
1877
if (obj.fs.existsSync(translationpath2)) { translationpath = translationpath2; } // If the agent is present in "meshcentral-data/agents", use that one instead.
1878
var translations = JSON.parse(obj.fs.readFileSync(translationpath).toString());
1879
if (translations['zh-chs']) { translations['zh-hans'] = translations['zh-chs']; delete translations['zh-chs']; }
1880
- if (translations['zh-cht']) { translations['zh-hant'] = translations['zh-cht']; delete translations['zh-cht']; }
1881
-
1880
+ if (translations['zh-cht']) {
1881
+ translations['zh-hant'] = translations['zh-cht'];
1882
+ translations['zh-tw'] = translations['zh-cht'];
1883
+ translations['zh-hk'] = translations['zh-cht'];
1884
+ delete translations['zh-cht'];
1885
+ }
1886
// If there is domain customizations to the agent strings, do this here.
1887
for (var i in obj.config.domains) {
1888
var domainTranslations = translations;