@nice2dev/i18n 1.0.10 → 1.0.12
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/index.cjs +4 -4
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +438 -379
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -616,6 +616,12 @@ export declare const NICE_GLOSSARY: GlossaryEntry[];
|
|
|
616
616
|
|
|
617
617
|
export declare const NICE_I18N_DICTIONARIES: Record<NiceSupportedLang, Record<string, string>>;
|
|
618
618
|
|
|
619
|
+
/**
|
|
620
|
+
* Locale-and-register variants. Built on top of the base pl dictionary;
|
|
621
|
+
* unspecified keys fall back to NICE_I18N_DICTIONARIES.pl.
|
|
622
|
+
*/
|
|
623
|
+
export declare const NICE_I18N_VARIANTS: Partial<Record<string, Partial<Record<NiceI18nVariant, Record<string, string>>>>>;
|
|
624
|
+
|
|
619
625
|
export declare const NICE_SUPPORTED_LANGS: readonly ["en", "pl", "de", "fr", "es", "it", "pt", "nl", "sv", "no", "da", "fi", "cs", "sk", "hu", "ro", "bg", "uk", "ja", "ko", "zh", "ar", "hi", "bn", "th", "vi", "id", "sw", "fil", "ms"];
|
|
620
626
|
|
|
621
627
|
export declare interface NiceCurrencyFormatter {
|
|
@@ -666,6 +672,8 @@ export declare interface NiceI18nProviderProps {
|
|
|
666
672
|
children: default_2.ReactNode;
|
|
667
673
|
}
|
|
668
674
|
|
|
675
|
+
export declare type NiceI18nVariant = 'formal' | 'informal';
|
|
676
|
+
|
|
669
677
|
export declare interface NiceNumberFormatter {
|
|
670
678
|
format: (value: number) => string;
|
|
671
679
|
formatCompact: (value: number) => string;
|
|
@@ -819,6 +827,9 @@ export declare function pseudoLocalize(text: string, options?: PseudoLocalizatio
|
|
|
819
827
|
*/
|
|
820
828
|
export declare function pseudoLocalizeDictionary(dictionary: Record<string, string>, options?: PseudoLocalizationOptions): Record<string, string>;
|
|
821
829
|
|
|
830
|
+
/** Resolve a register-aware dictionary by locale + variant. */
|
|
831
|
+
export declare function resolvePlVariant(variant: NiceI18nVariant): Record<string, string>;
|
|
832
|
+
|
|
822
833
|
/**
|
|
823
834
|
* CSS custom properties for RTL-aware components.
|
|
824
835
|
* Use these as fallbacks in CSS-in-JS or CSS modules.
|