fix(i18n): mark style labels without loading the catalogs (#1421)

The style shaders and visualPresets imported msg() from src/i18n/index.js,
which loads every locale catalog. The share-view codec reads the styles'
defaults, so a server bundling the codec carried about 0.9 MB of
translations it never uses. They now import the catalog-free marker, as
other portable modules do; the codec's bundle drops from about 1 MB to
130 KB.
This commit is contained in:
Sameh Khamis authored and GitHub committed 2026-10-26 16:54:01 -07:00
1 parent 6152f9f311
commit 15de9d738c
9 files changed
+13 -17

No files matched your search

+3 -10
View File
@@ -463,11 +463,7 @@
"src/styles/anime.js",
"src/styles/noir.js",
"src/styles/snow.js",
"src/i18n/index.js",
"src/i18n/locale.js",
"src/i18n/locales/es.json",
"src/i18n/locales/ru.json",
"src/i18n/locales/zh-CN.json"
"src/i18n/marker.js"
],
"external": ["cesium"]
},
@@ -3330,6 +3326,7 @@
"src/ui/visualPresets.js",
"src/ui/visualSettings.js",
"src/ui/segmentedControl.js",
"src/i18n/marker.js",
"src/i18n/index.js",
"src/i18n/locale.js",
"src/i18n/locales/es.json",
@@ -3907,11 +3904,7 @@
"src/data/idSwitches.js",
"src/data/detectionPolicy.js",
"src/scopeMaskPolicy.js",
"src/i18n/index.js",
"src/i18n/locale.js",
"src/i18n/locales/es.json",
"src/i18n/locales/ru.json",
"src/i18n/locales/zh-CN.json"
"src/i18n/marker.js"
],
"external": []
},