@asafarim/shared-i18n 0.6.2 → 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
+ ![Select Dropdown](https://github.com/AliSafari-IT/shared-i18n/blob/main/demo/public/Select%20Dropdown_Text%20Only.png?raw=true)
175
178
  - **icon-dropdown** — Custom dropdown showing flag emojis with language codes
179
+ ![Icon Dropdown](https://github.com/AliSafari-IT/shared-i18n/blob/main/demo/public/Icon%20Dropdown_Limited%20Languages.png?raw=true)
176
180
 
177
181
  ### Examples
178
182
 
package/demo/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-i18n-demo",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@asafarim/shared-i18n",
3
3
  "description": "A shared i18n package for React applications",
4
- "version": "0.6.2",
4
+ "version": "0.6.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
8
- "demo"
8
+ "demo",
9
+ "README.md"
9
10
  ],
10
11
  "main": "dist/index.js",
11
12
  "types": "dist/index.d.ts",