@solercia/ui 0.7.2 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +50 -30
- package/fesm2022/solercia-ui-login-appearance.mjs +3 -3
- package/fesm2022/solercia-ui-login-appearance.mjs.map +1 -1
- package/fesm2022/solercia-ui-theme-studio.mjs +3 -3
- package/fesm2022/solercia-ui-theme-studio.mjs.map +1 -1
- package/fesm2022/solercia-ui.mjs +1151 -291
- package/fesm2022/solercia-ui.mjs.map +1 -1
- package/i18n/en.json +284 -0
- package/i18n/es-CO.json +284 -0
- package/llms.txt +3 -2
- package/package.json +1 -1
- package/types/solercia-ui.d.ts +133 -39
|
@@ -2053,7 +2053,7 @@ function interpolate(template, params) {
|
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Traductor de la pantalla (llamar en contexto de inyección): resuelve `sol.themeStudio.<key>`
|
|
2055
2055
|
* con `SOL_I18N` y, si el host no tiene la clave, cae al diccionario por defecto del idioma activo
|
|
2056
|
-
* (`
|
|
2056
|
+
* (`es*` → español colombiano; cualquier otro → inglés). Lee `activeLang()`, así que el texto se
|
|
2057
2057
|
* recalcula al cambiar el idioma.
|
|
2058
2058
|
*/
|
|
2059
2059
|
function injectThemeStudioText() {
|
|
@@ -2064,8 +2064,8 @@ function injectThemeStudioText() {
|
|
|
2064
2064
|
const translated = i18n.translate(fullKey, params);
|
|
2065
2065
|
if (translated && translated !== fullKey)
|
|
2066
2066
|
return translated;
|
|
2067
|
-
const dictionary = lang.toLowerCase().startsWith('
|
|
2068
|
-
return interpolate(lookup(dictionary, key) ?? lookup(
|
|
2067
|
+
const dictionary = lang.toLowerCase().startsWith('es') ? SOL_THEME_STUDIO_I18N_ES_CO : SOL_THEME_STUDIO_I18N_EN;
|
|
2068
|
+
return interpolate(lookup(dictionary, key) ?? lookup(SOL_THEME_STUDIO_I18N_EN, key) ?? fullKey, params);
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
2071
|
|