@idealyst/translate 1.2.9 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/translate",
3
- "version": "1.2.9",
3
+ "version": "1.2.12",
4
4
  "description": "Cross-platform internationalization for Idealyst Framework",
5
5
  "readme": "README.md",
6
6
  "main": "src/index.ts",
@@ -1,2 +1,24 @@
1
- // React Native specific exports (currently identical to main)
2
- export * from './index';
1
+ // React Native specific exports
2
+
3
+ // Provider
4
+ export { TranslateProvider, useTranslateContext } from './provider';
5
+ export type { TranslateConfig, TranslateProviderProps, TranslateContextValue } from './provider';
6
+
7
+ // Hooks
8
+ export { useTranslation, useLanguage } from './hooks';
9
+ export type {
10
+ UseTranslationOptions,
11
+ UseTranslationResult,
12
+ TranslationOptions,
13
+ UseLanguageResult,
14
+ } from './hooks';
15
+
16
+ // Components
17
+ export { Trans } from './components';
18
+ export type { TransProps } from './components';
19
+
20
+ // Utils
21
+ export { parseKey, hasNestedKey, getNestedValue, flattenKeys } from './utils';
22
+
23
+ // Config
24
+ export { defineConfig } from './config';