@rango-dev/widget-embedded 0.23.1-next.22 → 0.23.1-next.23

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.
@@ -1 +1 @@
1
- {"version":3,"file":"LanguagePage.d.ts","sourceRoot":"","sources":["../../src/pages/LanguagePage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,YAAY,sBAwC3B"}
1
+ {"version":3,"file":"LanguagePage.d.ts","sourceRoot":"","sources":["../../src/pages/LanguagePage.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,YAAY,sBA8C3B"}
@@ -8,7 +8,7 @@ export declare const AppStoreContext: React.Context<import("zustand").UseBoundSt
8
8
  persist: {
9
9
  setOptions: (options: Partial<import("zustand/middleware").PersistOptions<import("./app").AppStoreState, {
10
10
  theme: import("./slices/settings").ThemeMode;
11
- language: "en" | "es" | "ja" | "fr" | "pt" | null;
11
+ language: "en" | "es" | "ja" | "fr" | "pt" | "zh" | "ru" | "de" | "uk" | "sv" | "fi" | "nl" | "el" | "it" | "pl" | null;
12
12
  affiliatePercent: number | null;
13
13
  affiliateRef: string | null;
14
14
  affiliateWallets: {
@@ -27,7 +27,7 @@ export declare const AppStoreContext: React.Context<import("zustand").UseBoundSt
27
27
  onFinishHydration: (fn: (state: import("./app").AppStoreState) => void) => () => void;
28
28
  getOptions: () => Partial<import("zustand/middleware").PersistOptions<import("./app").AppStoreState, {
29
29
  theme: import("./slices/settings").ThemeMode;
30
- language: "en" | "es" | "ja" | "fr" | "pt" | null;
30
+ language: "en" | "es" | "ja" | "fr" | "pt" | "zh" | "ru" | "de" | "uk" | "sv" | "fi" | "nl" | "el" | "it" | "pl" | null;
31
31
  affiliatePercent: number | null;
32
32
  affiliateRef: string | null;
33
33
  affiliateWallets: {
@@ -9,7 +9,7 @@ export declare function createAppStore(initialData?: WidgetConfig): import("zust
9
9
  persist: {
10
10
  setOptions: (options: Partial<import("zustand/middleware").PersistOptions<AppStoreState, {
11
11
  theme: import("./slices/settings").ThemeMode;
12
- language: "en" | "es" | "ja" | "fr" | "pt" | null;
12
+ language: "en" | "es" | "ja" | "fr" | "pt" | "zh" | "ru" | "de" | "uk" | "sv" | "fi" | "nl" | "el" | "it" | "pl" | null;
13
13
  affiliatePercent: number | null;
14
14
  affiliateRef: string | null;
15
15
  affiliateWallets: {
@@ -28,7 +28,7 @@ export declare function createAppStore(initialData?: WidgetConfig): import("zust
28
28
  onFinishHydration: (fn: (state: AppStoreState) => void) => () => void;
29
29
  getOptions: () => Partial<import("zustand/middleware").PersistOptions<AppStoreState, {
30
30
  theme: import("./slices/settings").ThemeMode;
31
- language: "en" | "es" | "ja" | "fr" | "pt" | null;
31
+ language: "en" | "es" | "ja" | "fr" | "pt" | "zh" | "ru" | "de" | "uk" | "sv" | "fi" | "nl" | "el" | "it" | "pl" | null;
32
32
  affiliatePercent: number | null;
33
33
  affiliateRef: string | null;
34
34
  affiliateWallets: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.23.1-next.22",
3
+ "version": "0.23.1-next.23",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,7 +25,7 @@
25
25
  "@rango-dev/queue-manager-core": "^0.26.0",
26
26
  "@rango-dev/queue-manager-rango-preset": "^0.28.1-next.3",
27
27
  "@rango-dev/queue-manager-react": "^0.26.0",
28
- "@rango-dev/ui": "^0.29.1-next.16",
28
+ "@rango-dev/ui": "^0.29.1-next.17",
29
29
  "@rango-dev/wallets-react": "^0.14.1-next.1",
30
30
  "@rango-dev/wallets-shared": "^0.28.1-next.1",
31
31
  "bignumber.js": "^9.1.1",
@@ -48,4 +48,4 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  }
51
- }
51
+ }
@@ -1,6 +1,22 @@
1
1
  import type { FlagPropTypes, Language } from '@rango-dev/ui';
2
2
 
3
- import { English, French, Japanese, Portuguese, Spanish } from '@rango-dev/ui';
3
+ import {
4
+ Chinese,
5
+ English,
6
+ Finland,
7
+ French,
8
+ German,
9
+ Greece,
10
+ Italian,
11
+ Japanese,
12
+ Netherlands,
13
+ Poland,
14
+ Portuguese,
15
+ Russian,
16
+ Spanish,
17
+ Swedish,
18
+ Ukrainian,
19
+ } from '@rango-dev/ui';
4
20
 
5
21
  export type LanguageItem = {
6
22
  title: string;
@@ -15,6 +31,16 @@ export const LANGUAGES: LanguageItem[] = [
15
31
  { title: 'French', label: 'Français', local: 'fr', SVGFlag: French },
16
32
  { title: 'Japanese', label: '日本語', local: 'ja', SVGFlag: Japanese },
17
33
  { title: 'Portuguese', label: 'Português', local: 'pt', SVGFlag: Portuguese },
34
+ { title: 'Chinese', label: '中国人', local: 'zh', SVGFlag: Chinese },
35
+ { title: 'Russian', label: 'Русский', local: 'ru', SVGFlag: Russian },
36
+ { title: 'German', label: 'Deutsch', local: 'de', SVGFlag: German },
37
+ { title: 'Ukrainian', label: 'Україні', local: 'uk', SVGFlag: Ukrainian },
38
+ { title: 'Swedish', label: 'svenska', local: 'sv', SVGFlag: Swedish },
39
+ { title: 'Finnish', label: 'Suomalainen', local: 'fi', SVGFlag: Finland },
40
+ { title: 'Dutch', label: 'Nederlands', local: 'nl', SVGFlag: Netherlands },
41
+ { title: 'Greek', label: 'Grieks', local: 'el', SVGFlag: Greece },
42
+ { title: 'Italian', label: 'Italiana', local: 'it', SVGFlag: Italian },
43
+ { title: 'Polish', label: 'Polski', local: 'pl', SVGFlag: Poland },
18
44
  ];
19
45
 
20
46
  export const DEFAULT_LANGUAGE = 'en';
@@ -1,5 +1,7 @@
1
1
  import { i18n } from '@lingui/core';
2
2
  import {
3
+ Alert,
4
+ Divider,
3
5
  List,
4
6
  ListItemButton,
5
7
  Radio,
@@ -36,6 +38,12 @@ export function LanguagePage() {
36
38
  title: i18n.t('Language'),
37
39
  }}>
38
40
  <PageContainer>
41
+ <Alert
42
+ type="warning"
43
+ variant="alarm"
44
+ title="Important Notice: Machine translations are in use"
45
+ />
46
+ <Divider size={'8'} />
39
47
  <RadioRoot value={activeLanguage}>
40
48
  <List
41
49
  type={