@solercia/ui 0.7.0 → 0.8.0
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 +567 -523
- package/README.md +1207 -114
- 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 +1134 -286
- package/fesm2022/solercia-ui.mjs.map +1 -1
- package/i18n/en.json +284 -0
- package/i18n/es-CO.json +284 -0
- package/llms.txt +38 -0
- package/package.json +15 -3
- package/types/solercia-ui.d.ts +133 -39
|
@@ -1166,7 +1166,7 @@ function interpolate(template, params) {
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Translator (call in an injection context): resolves `sol.loginAppearance.<key>` with `SOL_I18N`
|
|
1168
1168
|
* and, when the host lacks the key, falls back to the default dictionary of the active language
|
|
1169
|
-
* (`
|
|
1169
|
+
* (`es*` → Colombian Spanish; anything else → English). Reads `activeLang()`, so it reacts to
|
|
1170
1170
|
* language changes.
|
|
1171
1171
|
*/
|
|
1172
1172
|
function injectLoginAppearanceText() {
|
|
@@ -1176,8 +1176,8 @@ function injectLoginAppearanceText() {
|
|
|
1176
1176
|
const translated = i18n.translate(fullKey, params);
|
|
1177
1177
|
if (translated && translated !== fullKey)
|
|
1178
1178
|
return translated;
|
|
1179
|
-
const dictionary = i18n.activeLang().toLowerCase().startsWith('
|
|
1180
|
-
return interpolate(lookup(dictionary, key) ?? lookup(
|
|
1179
|
+
const dictionary = i18n.activeLang().toLowerCase().startsWith('es') ? SOL_LOGIN_APPEARANCE_I18N_ES_CO : SOL_LOGIN_APPEARANCE_I18N_EN;
|
|
1180
|
+
return interpolate(lookup(dictionary, key) ?? lookup(SOL_LOGIN_APPEARANCE_I18N_EN, key) ?? fullKey, params);
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
|