@gradio/core 0.15.0 → 0.15.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @gradio/core
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Fixes
6
+
7
+ - [#11088](https://github.com/gradio-app/gradio/pull/11088) [`a5105cc`](https://github.com/gradio-app/gradio/commit/a5105cccd6ca0682bd206608a080e24d69dad136) - fix: ensure all translation files work as expected. Thanks @Col0ring!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/gallery@0.15.17
12
+ - @gradio/button@0.4.17
13
+ - @gradio/video@0.14.12
14
+ - @gradio/image@0.22.4
15
+
3
16
  ## 0.15.0
4
17
 
5
18
  ### Features
package/dist/src/i18n.js CHANGED
@@ -23,10 +23,16 @@ export async function setupi18n() {
23
23
  return;
24
24
  }
25
25
  const browser_locale = getLocaleFromNavigator();
26
- const normalized_locale = browser_locale?.split("-")[0];
27
- const initial_locale = normalized_locale && available_locales.includes(normalized_locale)
28
- ? normalized_locale
29
- : "en";
26
+ let initial_locale = browser_locale && available_locales.includes(browser_locale)
27
+ ? browser_locale
28
+ : null;
29
+ if (!initial_locale) {
30
+ const normalized_locale = browser_locale?.split("-")[0];
31
+ initial_locale =
32
+ normalized_locale && available_locales.includes(normalized_locale)
33
+ ? normalized_locale
34
+ : "en";
35
+ }
30
36
  await init({
31
37
  fallbackLocale: "en",
32
38
  initialLocale: initial_locale
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
1
  {
2
2
  "name": "@gradio/core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@gradio/accordion": "^0.5.14",
7
7
  "@gradio/atoms": "^0.16.0",
8
- "@gradio/annotatedimage": "^0.9.17",
9
- "@gradio/audio": "^0.17.11",
10
- "@gradio/box": "^0.2.18",
11
- "@gradio/button": "^0.4.16",
12
- "@gradio/chatbot": "^0.26.2",
13
- "@gradio/client": "^1.14.2",
8
+ "@gradio/audio": "^0.17.12",
9
+ "@gradio/button": "^0.4.17",
10
+ "@gradio/chatbot": "^0.26.3",
14
11
  "@gradio/checkbox": "^0.4.20",
15
12
  "@gradio/checkboxgroup": "^0.6.20",
16
- "@gradio/colorpicker": "^0.4.20",
13
+ "@gradio/box": "^0.2.18",
14
+ "@gradio/client": "^1.14.2",
17
15
  "@gradio/code": "^0.14.2",
16
+ "@gradio/colorpicker": "^0.4.20",
18
17
  "@gradio/column": "^0.2.0",
19
- "@gradio/dataframe": "^0.17.9",
20
18
  "@gradio/datetime": "^0.3.12",
19
+ "@gradio/dataframe": "^0.17.10",
20
+ "@gradio/downloadbutton": "^0.3.17",
21
21
  "@gradio/dataset": "^0.4.16",
22
- "@gradio/downloadbutton": "^0.3.16",
23
22
  "@gradio/dropdown": "^0.9.20",
23
+ "@gradio/fallback": "^0.4.20",
24
24
  "@gradio/file": "^0.12.16",
25
25
  "@gradio/fileexplorer": "^0.5.27",
26
26
  "@gradio/form": "^0.2.18",
27
- "@gradio/fallback": "^0.4.20",
28
- "@gradio/gallery": "^0.15.16",
27
+ "@gradio/annotatedimage": "^0.9.17",
28
+ "@gradio/gallery": "^0.15.17",
29
29
  "@gradio/group": "^0.2.0",
30
30
  "@gradio/highlightedtext": "^0.9.3",
31
31
  "@gradio/html": "^0.6.11",
32
32
  "@gradio/icons": "^0.12.0",
33
- "@gradio/image": "^0.22.3",
34
- "@gradio/imageeditor": "^0.14.3",
35
- "@gradio/json": "^0.5.20",
36
- "@gradio/label": "^0.5.12",
33
+ "@gradio/image": "^0.22.4",
37
34
  "@gradio/imageslider": "^0.2.0",
35
+ "@gradio/imageeditor": "^0.14.4",
36
+ "@gradio/json": "^0.5.20",
38
37
  "@gradio/browserstate": "^0.3.2",
39
- "@gradio/model3d": "^0.14.11",
40
38
  "@gradio/markdown": "^0.13.10",
41
- "@gradio/multimodaltextbox": "^0.10.3",
39
+ "@gradio/label": "^0.5.12",
40
+ "@gradio/multimodaltextbox": "^0.10.4",
41
+ "@gradio/model3d": "^0.14.11",
42
42
  "@gradio/nativeplot": "^0.5.14",
43
43
  "@gradio/number": "^0.5.20",
44
+ "@gradio/plot": "^0.9.15",
44
45
  "@gradio/paramviewer": "^0.7.8",
45
46
  "@gradio/radio": "^0.7.3",
46
- "@gradio/plot": "^0.9.15",
47
47
  "@gradio/row": "^0.2.1",
48
- "@gradio/simpledropdown": "^0.3.20",
49
48
  "@gradio/sidebar": "^0.1.12",
49
+ "@gradio/simpledropdown": "^0.3.20",
50
50
  "@gradio/simpleimage": "^0.8.27",
51
51
  "@gradio/sketchbox": "^0.6.7",
52
52
  "@gradio/simpletextbox": "^0.3.20",
53
53
  "@gradio/slider": "^0.6.8",
54
- "@gradio/statustracker": "^0.10.10",
55
54
  "@gradio/state": "^0.1.2",
55
+ "@gradio/statustracker": "^0.10.10",
56
56
  "@gradio/tabitem": "^0.4.3",
57
57
  "@gradio/tabs": "^0.4.3",
58
58
  "@gradio/textbox": "^0.10.10",
59
59
  "@gradio/theme": "^0.4.0",
60
60
  "@gradio/timer": "^0.4.5",
61
61
  "@gradio/upload": "^0.16.3",
62
- "@gradio/video": "^0.14.11",
62
+ "@gradio/uploadbutton": "^0.8.17",
63
+ "@gradio/video": "^0.14.12",
63
64
  "@gradio/wasm": "^0.18.1",
64
- "@gradio/uploadbutton": "^0.8.16",
65
65
  "@gradio/utils": "^0.10.2"
66
66
  },
67
67
  "msw": {
package/src/i18n.ts CHANGED
@@ -49,12 +49,19 @@ export async function setupi18n(): Promise<void> {
49
49
  }
50
50
 
51
51
  const browser_locale = getLocaleFromNavigator();
52
- const normalized_locale = browser_locale?.split("-")[0];
53
52
 
54
- const initial_locale =
55
- normalized_locale && available_locales.includes(normalized_locale)
56
- ? normalized_locale
57
- : "en";
53
+ let initial_locale =
54
+ browser_locale && available_locales.includes(browser_locale)
55
+ ? browser_locale
56
+ : null;
57
+
58
+ if (!initial_locale) {
59
+ const normalized_locale = browser_locale?.split("-")[0];
60
+ initial_locale =
61
+ normalized_locale && available_locales.includes(normalized_locale)
62
+ ? normalized_locale
63
+ : "en";
64
+ }
58
65
 
59
66
  await init({
60
67
  fallbackLocale: "en",