You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| languages | string[]| List of languages who can be selected|
48
-
| getCurrentLang | () => string | Return current lang|
49
-
| t | (key: string, params?: Record<string, any>, dict?: Record<string, any>) => string OR undefined | Return translated text <https://github.com/lukeed/rosetta#rosettatkey-params-lang>. If dict is defined, he will use dict.|
50
-
| displayNames |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames)| Consistent translation of language, region and script display names <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames>|
51
-
| listFormat |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat)| Language-sensitive list formatting <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat>|
52
-
| numberFormat |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat)| Language-sensitive list formatting <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat>|
53
-
| pluralRules |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules)| Plural-sensitive formatting and plural-related language rules <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules>|
54
-
|format|[Documentation](https://date-fns.org/v3.3.0/docs/format)| Return the formatted date string in the given format <https://date-fns.org/v3.3.0/docs/format>|
55
-
|formatRelative |[Documentation](https://date-fns.org/v3.3.0/docs/formatRelative)| Represent the date in words relative to the given base date. <https://date-fns.org/v3.3.0/docs/formatRelative>|
56
-
|formatDistance|[Documentation](https://date-fns.org/v3.3.0/docs/formatDistance)| Return the distance between the given dates in words. <https://date-fns.org/v3.3.0/docs/formatDistance>|
57
-
|formatDistanceToNow |[Documentation](https://date-fns.org/v3.3.0/docs/formatDistanceToNow)| Return the distance between the given date and now in words. <https://date-fns.org/v3.3.0/docs/formatDistanceToNow>|
| changeLang | (newLang: string) => void | Change current lang |
46
+
| languages | string[]| List of languages who can be selected |
47
+
| getCurrentLang | () => string | Return current lang |
48
+
| t | (key: string, params?: Record<string, any>, dict?: Record<string, any>) => string OR undefined | Return translated text <https://github.com/lukeed/rosetta#rosettatkey-params-lang>. If dict is defined, he will use dict. |
49
+
| displayNames |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames)| Consistent translation of language, region and script display names |
50
+
| listFormat |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat)| Language-sensitive list formatting |
51
+
| numberFormat |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat)| Language-sensitive number formatting |
52
+
| pluralRules |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules)| Plural-sensitive formatting and plural-related language rules |
53
+
|dateTimeFormat|[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat)| Language-sensitive date and time formatting|
54
+
|relativeTimeFormat |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat)| Language-sensitive relative time formatting |
|segmenter |[Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)| Language-sensitive text segmentation|
0 commit comments