Currently the localizer checks if there is a valid language tag set in the model of the artifact and if there is none, without further tests the fallback value is returned. This behavior is not desired if the value to localize is a plain string. In this case the expectation is that the string is directly returned without any check for a language tag, as no localization is necessary / desired.
Possible fix:
Change
function partial( i18nValue ) {
var t = model.tags[ model.locale ];
return t ? ax.i18n.localizer( t, fallback )( i18nValue ) : fallback;
}
to
function partial( i18nValue ) {
if( typeof i18nValue === 'string' ) { return i18nValue; }
var t = model.tags[ model.locale ];
return t ? ax.i18n.localizer( t, fallback )( i18nValue ) : fallback;
}
Currently the localizer checks if there is a valid language tag set in the model of the artifact and if there is none, without further tests the fallback value is returned. This behavior is not desired if the value to localize is a plain string. In this case the expectation is that the string is directly returned without any check for a language tag, as no localization is necessary / desired.
Possible fix: Change
to