@asafarim/shared-i18n 0.6.3 → 0.6.4
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/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Lightweight, simple translation module for any React + TypeScript app, built on top of i18next and react-i18next. It ships with sensible defaults (English and Dutch) but can support any language by adding JSON files to your locales folder.
|
|
4
4
|
|
|
5
|
+
* see Demo at: [https://alisafari-it.github.io/shared-i18n/](https://alisafari-it.github.io/shared-i18n/)
|
|
6
|
+
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
9
|
- 🌍 Works in any React + TypeScript project (monorepo or standalone)
|
|
@@ -172,7 +174,9 @@ interface LanguageSwitcherProps {
|
|
|
172
174
|
|
|
173
175
|
- **buttons** — Individual buttons for each language (default)
|
|
174
176
|
- **select** — Native dropdown select element
|
|
177
|
+

|
|
175
178
|
- **icon-dropdown** — Custom dropdown showing flag emojis with language codes
|
|
179
|
+

|
|
176
180
|
|
|
177
181
|
### Examples
|
|
178
182
|
|
package/demo/package.json
CHANGED
|
Binary file
|
|
Binary file
|