@fkui/i18next-translate 6.36.0 → 6.36.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/dist/esm/index.js
CHANGED
|
@@ -3094,7 +3094,7 @@ class PluralResolver {
|
|
|
3094
3094
|
type
|
|
3095
3095
|
});
|
|
3096
3096
|
} catch (err) {
|
|
3097
|
-
if (
|
|
3097
|
+
if (typeof Intl === 'undefined') {
|
|
3098
3098
|
this.logger.error('No Intl support, please use an Intl polyfill!');
|
|
3099
3099
|
return dummyRule;
|
|
3100
3100
|
}
|
|
@@ -3763,6 +3763,7 @@ const bindMemberFunctions = inst => {
|
|
|
3763
3763
|
}
|
|
3764
3764
|
});
|
|
3765
3765
|
};
|
|
3766
|
+
let supportNoticeShown = false;
|
|
3766
3767
|
const usesLocize = inst => {
|
|
3767
3768
|
if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;
|
|
3768
3769
|
if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;
|
|
@@ -3823,8 +3824,9 @@ class I18n extends EventEmitter {
|
|
|
3823
3824
|
if (typeof this.options.overloadTranslationOptionHandler !== 'function') {
|
|
3824
3825
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
3825
3826
|
}
|
|
3826
|
-
if (this.options.showSupportNotice !== false && !usesLocize(this)) {
|
|
3827
|
-
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from
|
|
3827
|
+
if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
|
|
3828
|
+
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
|
|
3829
|
+
supportNoticeShown = true;
|
|
3828
3830
|
}
|
|
3829
3831
|
const createClassOnDemand = ClassOrObject => {
|
|
3830
3832
|
if (!ClassOrObject) return null;
|