@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.
@@ -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
- * (`en*` → English; anything else → Colombian Spanish). Reads `activeLang()`, so it reacts to
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('en') ? SOL_LOGIN_APPEARANCE_I18N_EN : SOL_LOGIN_APPEARANCE_I18N_ES_CO;
1180
- return interpolate(lookup(dictionary, key) ?? lookup(SOL_LOGIN_APPEARANCE_I18N_ES_CO, key) ?? fullKey, params);
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