Skip to content

Commit f6d37e1

Browse files
authored
Font and translation stories follow up (#4630)
* moving the chromatic font translations into a single file * adding story description listing the langauges with translations
1 parent a30e1bf commit f6d37e1

33 files changed

+525
-428
lines changed

packages/@react-spectrum/dialog/chromatic/DialogLanguages.chromatic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {Dialog, DialogTrigger} from '../';
1818
import {Divider} from '@react-spectrum/divider';
1919
import {Heading} from '@react-spectrum/text';
2020
// @ts-ignore
21-
import intlMessages from './intl/*.json';
21+
import intlMessages from './intlMessages.json';
2222
import {Item, TagGroup} from '@react-spectrum/tag';
2323
import {Provider} from '@react-spectrum/provider';
2424
import React from 'react';

packages/@react-spectrum/dialog/chromatic/intl/ar-AE.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/en-US.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/he-IL.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/ja-JP.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/ko-KR.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/zh-CN.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@react-spectrum/dialog/chromatic/intl/zh-TW.json

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
{
2+
"ar-AR": {
3+
"koji": "كوجي",
4+
"kojiFoods": "الأطعمة كوجي",
5+
"foodsMakeWithKoji": "الأطعمة اليابانية والتوابل والمشروبات المصنوعة من الكوجي",
6+
"kojiColors": "ألوان كوجي",
7+
"white": "أبيض (أخضر)",
8+
"yellow": "أصفر",
9+
"black": "أسود",
10+
"name": "اسم",
11+
"description": "وصف",
12+
"soySauce": "شويو",
13+
"soySauceDescription": "بهار سائل مصنوع من فول الصويا وكوجي والقمح.",
14+
"miso": "ميسو",
15+
"misoDescription": "توابل يابانية تقليدية.",
16+
"amazake": "أمازاكي",
17+
"amazakeDescription": "مشروب أرز حلو.",
18+
"sake": "من أجل",
19+
"sakeDescription": "نبيذ الأرز.",
20+
"mirin": "ميرين",
21+
"mirinDescription": "نبيذ أرز حلو.",
22+
"riceWineVinegar": "خل نبيذ الأرز",
23+
"riceWineVinegarDescription": "خل مصنوع من نبيذ الأرز.",
24+
"cancel": "يلغي",
25+
"confirm": "يتأكد"
26+
},
27+
"en-US": {
28+
"koji": "Koji",
29+
"kojiFoods": "Koji foods",
30+
"foodsMakeWithKoji": "Japanese foods, condiments, and beverages made with koji",
31+
"kojiColors": "Colors of koji",
32+
"white": "white (green)",
33+
"yellow": "yellow",
34+
"black": "black",
35+
"name": "Name",
36+
"description": "Description",
37+
"soySauce": "Shoyu",
38+
"soySauceDescription": "A liquid condiment made from soybeans, koji, and wheat.",
39+
"miso": "Miso",
40+
"misoDescription": "A traditional Japanese seasoning.",
41+
"amazake": "Amazake",
42+
"amazakeDescription": "A sweet rice drink.",
43+
"sake": "Sake",
44+
"sakeDescription": "Rice wine.",
45+
"mirin": "Mirin",
46+
"mirinDescription": "Sweet rice wine.",
47+
"riceWineVinegar": "Rice wine vinegar",
48+
"riceWineVinegarDescription": "Vinegar made from rice wine.",
49+
"cancel": "Cancel",
50+
"confirm": "Confirm"
51+
},
52+
"he-IL":{
53+
"koji": "קוג'י",
54+
"kojiFoods": "מזונות קוג'י",
55+
"foodsMakeWithKoji": "אוכל יפני, תבלינים ומשקאות עשויים עם קוג'י",
56+
"kojiColors": "צבעים של קוג'י",
57+
"white": "לבן (ירוק)",
58+
"yellow": "צהוב",
59+
"black": "שָׁחוֹר",
60+
"name": "שֵׁם",
61+
"description": "תיאור",
62+
"soySauce": "שויו",
63+
"soySauceDescription": "תבלין נוזלי העשוי מפולי סויה, קוג'י וחיטה.",
64+
"miso": "מיסו",
65+
"misoDescription": "תיבול יפני מסורתי.",
66+
"amazake": "אמזאקה",
67+
"amazakeDescription": "משקה אורז מתוק.",
68+
"sake": "סאקה",
69+
"sakeDescription": "יין אורז.",
70+
"mirin": "מירין",
71+
"mirinDescription": "יין אורז מתוק.",
72+
"riceWineVinegar": "חומץ יין אורז",
73+
"riceWineVinegarDescription": "חומץ עשוי מיין אורז.",
74+
"cancel": "לְבַטֵל",
75+
"confirm": "לְאַשֵׁר"
76+
}
77+
,
78+
"ja-JP": {
79+
"koji": "",
80+
"kojiFoods": "麹食品",
81+
"foodsMakeWithKoji": "麹を使った和食・調味料・飲料",
82+
"kojiColors": "麹の色",
83+
"white": "白(緑",
84+
"yellow": "黄色",
85+
"black": "",
86+
"name": "名前",
87+
"description": "説明",
88+
"soySauce": "醤油",
89+
"soySauceDescription": "大豆、麹、小麦から作られた液体調味料です。",
90+
"miso": "味噌",
91+
"misoDescription": "日本の伝統的な調味料。",
92+
"amazake": "甘酒",
93+
"amazakeDescription": "甘いお米のドリンク。",
94+
"sake": "",
95+
"sakeDescription": "お酒。",
96+
"mirin": "みりん",
97+
"mirinDescription": "味醂。",
98+
"riceWineVinegar": "米酢",
99+
"riceWineVinegarDescription": "米酒から作られたお酢。",
100+
"cancel": "キャンセル",
101+
"confirm": "確認"
102+
},
103+
"ko-KR": {
104+
"koji": "코지",
105+
"kojiFoods": "누룩 식품",
106+
"foodsMakeWithKoji": "누룩으로 만든 일본 음식, 조미료 및 음료",
107+
"kojiColors": "누룩의 색",
108+
"white": "흰색(녹색)",
109+
"yellow": "노란색",
110+
"black": "검은색",
111+
"name": "이름",
112+
"description": "설명",
113+
"soySauce": "쇼유",
114+
"soySauceDescription": "콩, 누룩, 밀로 만든 액체 조미료.",
115+
"miso": "된장",
116+
"misoDescription": "일본의 전통 조미료.",
117+
"amazake": "감주",
118+
"amazakeDescription": "달콤한 쌀 음료.",
119+
"sake": "동기",
120+
"sakeDescription": "막걸리.",
121+
"mirin": "미린",
122+
"mirinDescription": "달콤한 막걸리.",
123+
"riceWineVinegar": "막걸리식초",
124+
"riceWineVinegarDescription": "막걸리로 만든 식초.",
125+
"cancel": "취소",
126+
"confirm": "확인하다"
127+
},
128+
"zh-CN": {
129+
"koji": "小司",
130+
"kojiFoods": "酒曲食品",
131+
"foodsMakeWithKoji": "用曲制成的日本食品、调味品和饮料",
132+
"kojiColors": "酒曲的颜色",
133+
"white": "白(绿)",
134+
"yellow": "黄色的",
135+
"black": "黑色的",
136+
"name": "姓名",
137+
"description": "描述",
138+
"soySauce": "酱油",
139+
"soySauceDescription": "一种由大豆、曲和小麦制成的液体调味品。",
140+
"miso": "味噌",
141+
"misoDescription": "日本传统调味料",
142+
"amazake": "甘酒",
143+
"amazakeDescription": "一种甜米饮料。",
144+
"sake": "清酒",
145+
"sakeDescription": "米酒。",
146+
"mirin": "料酒",
147+
"mirinDescription": "甜米酒。",
148+
"riceWineVinegar": "米酒醋",
149+
"riceWineVinegarDescription": "用米酒制成的醋。",
150+
"cancel": "取消",
151+
"confirm": "确认"
152+
},
153+
"zh-TW": {
154+
"koji": "小司",
155+
"kojiFoods": "酒麯食品",
156+
"foodsMakeWithKoji": "用曲製成的日本食品、調味品和飲料",
157+
"kojiColors": "酒麯的顏色",
158+
"white": "白(綠)",
159+
"yellow": "黃色的",
160+
"black": "黑色的",
161+
"name": "姓名",
162+
"description": "描述",
163+
"soySauce": "醬油",
164+
"soySauceDescription": "一種由大豆、曲和小麥製成的液體調味品。",
165+
"miso": "味噌",
166+
"misoDescription": "日本傳統調味料。",
167+
"amazake": "甘酒",
168+
"amazakeDescription": "一種甜米飲料。",
169+
"sake": "清酒",
170+
"sakeDescription": "米酒。",
171+
"mirin": "料酒",
172+
"mirinDescription": "甜米酒。",
173+
"riceWineVinegar": "米酒醋",
174+
"riceWineVinegarDescription": "用米酒製成的醋。",
175+
"cancel": "取消",
176+
"confirm": "確認"
177+
}
178+
}

packages/@react-spectrum/dialog/stories/DialogTrigger.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ WithTooltip.story = {
472472
export const WithTranslations = () => <TranslateDialog />;
473473

474474
WithTranslations.story = {
475-
name: 'with translations'
475+
name: 'with translations',
476+
parameters: {description: {data: 'Translations included for: Arabic, English, Hebrew, Japanese, Korean, Simplified Chinese, and Traditional Chinese.'}}
476477
};
477478

478479
function render(props) {

0 commit comments

Comments
 (0)