@symbiote-native/localization 1.0.0 → 2.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.
Files changed (2) hide show
  1. package/README.md +13 -9
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -82,8 +82,8 @@ function LocalizationScreen() {
82
82
 
83
83
  return (
84
84
  <>
85
- <Text>{locales[0].languageTag}</Text>
86
- <Text>{calendars[0].timeZone}</Text>
85
+ <text>{locales[0].languageTag}</text>
86
+ <text>{calendars[0].timeZone}</text>
87
87
  </>
88
88
  );
89
89
  }
@@ -98,21 +98,25 @@ const locales = useLocales(); // Ref<Locale[]>
98
98
  const calendars = useCalendars(); // Ref<Calendar[]>
99
99
  </script>
100
100
  <template>
101
- <Text>{{ locales[0].languageTag }}</Text>
102
- <Text>{{ calendars[0].timeZone }}</Text>
101
+ <text>{{ locales[0].languageTag }}</text>
102
+ <text>{{ calendars[0].timeZone }}</text>
103
103
  </template>
104
104
  ```
105
105
 
106
106
  ```svelte
107
107
  <!-- Svelte -->
108
108
  <script lang="ts">
109
- import { useLocales, useCalendars } from '@symbiote-native/localization/svelte';
109
+ import {
110
+ useLocales,
111
+ useCalendars,
112
+ } from '@symbiote-native/localization/svelte';
110
113
 
111
114
  const locales = useLocales(); // { readonly current: Locale[] }
112
115
  const calendars = useCalendars(); // { readonly current: Calendar[] }
113
116
  </script>
114
- <Text>{locales.current[0].languageTag}</Text>
115
- <Text>{calendars.current[0].timeZone}</Text>
117
+
118
+ <text>{locales.current[0].languageTag}</text>
119
+ <text>{calendars.current[0].timeZone}</text>
116
120
  ```
117
121
 
118
122
  ```tsx
@@ -129,8 +133,8 @@ function LocalizationScreen() {
129
133
 
130
134
  return (
131
135
  <>
132
- <Text>{locales()[0].languageTag}</Text>
133
- <Text>{calendars()[0].timeZone}</Text>
136
+ <text>{locales()[0].languageTag}</text>
137
+ <text>{calendars()[0].timeZone}</text>
134
138
  </>
135
139
  );
136
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbiote-native/localization",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "expo-localization wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. Two independent synchronous getters (getLocales, getCalendars), each with its own native change listener and its own reactive hook per adapter.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -80,12 +80,12 @@
80
80
  "solid-js": ">=1.9.0",
81
81
  "svelte": ">=5.56.0",
82
82
  "vue": ">=3.5.0",
83
- "@symbiote-native/angular": "^1.0.0",
84
- "@symbiote-native/engine": "^0.4.0",
85
- "@symbiote-native/react": "^1.0.0",
86
- "@symbiote-native/solid": "^1.0.0",
87
- "@symbiote-native/svelte": "^1.0.0",
88
- "@symbiote-native/vue": "^1.0.0"
83
+ "@symbiote-native/angular": "^2.0.0",
84
+ "@symbiote-native/engine": "^0.5.0",
85
+ "@symbiote-native/react": "^2.0.0",
86
+ "@symbiote-native/solid": "^2.0.0",
87
+ "@symbiote-native/svelte": "^2.0.0",
88
+ "@symbiote-native/vue": "^2.0.0"
89
89
  },
90
90
  "peerDependenciesMeta": {
91
91
  "@symbiote-native/angular": {
@@ -133,13 +133,13 @@
133
133
  "solid-js": "^1.9.14",
134
134
  "svelte": "^5.56.0",
135
135
  "typescript": "~6.0.0",
136
- "@symbiote-native/angular": "1.0.0",
137
- "@symbiote-native/engine": "0.4.0",
138
- "@symbiote-native/react": "1.0.0",
139
- "@symbiote-native/solid": "1.0.0",
140
- "@symbiote-native/svelte": "1.0.0",
136
+ "@symbiote-native/angular": "2.0.0",
137
+ "@symbiote-native/engine": "0.5.0",
138
+ "@symbiote-native/react": "2.0.0",
139
+ "@symbiote-native/solid": "2.0.0",
140
+ "@symbiote-native/svelte": "2.0.0",
141
141
  "@symbiote-native/test-utils": "0.3.0",
142
- "@symbiote-native/vue": "1.0.0"
142
+ "@symbiote-native/vue": "2.0.0"
143
143
  },
144
144
  "scripts": {
145
145
  "typecheck": "tsc --build",