@ledgerhq/lumen-ui-rnative 0.0.49 → 0.0.50

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.
@@ -101,10 +101,10 @@ The ThemeProvider also manages the app’s locale using React Context.
101
101
  You can just pass the locale to the `ThemeProvider` and the translations will be loaded automatically.
102
102
 
103
103
  ```tsx
104
- import { ThemeProvider, type SupportedLocale } from '@ledgerhq/lumen-ui-rnative';
104
+ import { ThemeProvider, type SupportedLocale, Languages } from '@ledgerhq/lumen-ui-rnative';
105
105
 
106
106
  function AppProviders() {
107
- const [locale, setLocale] = useState<SupportedLocale>('en');
107
+ const [locale, setLocale] = useState<SupportedLocale>(Languages.en.id);
108
108
  return (
109
109
  <ThemeProvider locale={locale}>
110
110
  <App />
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-rnative",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "react-native",
@@ -27,13 +27,13 @@
27
27
  "./styles": "./src/styles/index.ts"
28
28
  },
29
29
  "dependencies": {
30
- "@ledgerhq/lumen-utils-shared": "0.0.14",
30
+ "@ledgerhq/lumen-utils-shared": "0.0.15",
31
31
  "i18next": "^23.7.0",
32
32
  "react-i18next": "^14.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@gorhom/bottom-sheet": "^5.0.0",
36
- "@ledgerhq/lumen-design-core": "0.0.38",
36
+ "@ledgerhq/lumen-design-core": "0.0.39",
37
37
  "react": "~18.3.1",
38
38
  "react-native": "~0.77.3",
39
39
  "react-native-reanimated": "^3.0.0",
@@ -1,4 +1,4 @@
1
1
  export { I18nProvider } from './I18nProvider';
2
- export { type SupportedLocale } from './languages';
2
+ export { type SupportedLocale, Languages } from './languages';
3
3
  export { useCommonTranslation } from './useCommonTranslation';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { I18nProvider } from './I18nProvider';
2
+ export { Languages } from './languages';
2
3
  export { useCommonTranslation } from './useCommonTranslation';
@@ -1,4 +1,4 @@
1
- export { type SupportedLocale } from './i18n';
1
+ export { type SupportedLocale, Languages } from './i18n';
2
2
  export * from './lib/Components';
3
3
  export * from './lib/Patterns';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ export { Languages } from './i18n';
1
2
  export * from './lib/Components';
2
3
  export * from './lib/Patterns';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-rnative",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "react-native",
package/src/i18n/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { I18nProvider } from './I18nProvider';
2
- export { type SupportedLocale } from './languages';
2
+ export { type SupportedLocale, Languages } from './languages';
3
3
  export { useCommonTranslation } from './useCommonTranslation';
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { type SupportedLocale } from './i18n';
1
+ export { type SupportedLocale, Languages } from './i18n';
2
2
  export * from './lib/Components';
3
3
  export * from './lib/Patterns';