@mypdfcv/i18n 1.0.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.
@@ -0,0 +1,9 @@
1
+ export { Locale, defaultLocale, locales } from './index.cjs';
2
+
3
+ type Messages = Record<string, Record<string, string>>;
4
+ /** Synchronously get all messages for a locale. Falls back to defaultLocale. */
5
+ declare function getMessages(locale: string): Messages;
6
+ /** Get a specific namespace from messages. */
7
+ declare function getNamespace(locale: string, ns: string): Record<string, string>;
8
+
9
+ export { getMessages, getNamespace };
@@ -0,0 +1,9 @@
1
+ export { Locale, defaultLocale, locales } from './index.js';
2
+
3
+ type Messages = Record<string, Record<string, string>>;
4
+ /** Synchronously get all messages for a locale. Falls back to defaultLocale. */
5
+ declare function getMessages(locale: string): Messages;
6
+ /** Get a specific namespace from messages. */
7
+ declare function getNamespace(locale: string, ns: string): Record<string, string>;
8
+
9
+ export { getMessages, getNamespace };