Skip to content

Commit b78a47e

Browse files
authored
Add japanese translations for emotion (#2485)
* add ja translate * add test local ja
1 parent a00b4c6 commit b78a47e

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

lib/locales/ja/emotion.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
ja:
2+
faker:
3+
emotion:
4+
adjective:
5+
- 穏やか
6+
- 嬉しい
7+
- 楽しい
8+
- 幸せ
9+
- 興奮する
10+
- 昂る
11+
- 傷ついている
12+
- イライラする
13+
- 気になる
14+
- 恥ずかしい
15+
- 気持ちいい
16+
- スッキリ
17+
- 和む
18+
- 癒される
19+
- 落ち着く
20+
- 悲しい
21+
- 面白い
22+
- 切ない
23+
- 寂しい
24+
- 困る
25+
- 戸惑う
26+
- 萎える
27+
noun:
28+
- 笑い
29+
- 満足
30+
- 爽快
31+
- 感動
32+
- 感心
33+
- 恐れ
34+
- 孤独
35+
- 憂鬱
36+
- 落胆
37+
- 憤怒
38+
- 嫉妬
39+
- 好き
40+
- 欲望
41+
- 哀れ
42+
- 緊張
43+
- パニック
44+
- 喜び
45+
- 後悔
46+
- 安心
47+
- 恨み
48+
- 驚き
49+
- 同情
50+
51+

test/test_ja_locale.rb

+7
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ def test_ja_dog_methods
8484
assert_not_match(/[a-zA-Z]/, Faker::Creature::Dog.breed)
8585
end
8686

87+
def test_ja_emotion_methods
88+
assert Faker::Emotion.noun.is_a? String
89+
assert_not_english(Faker::Emotion.noun)
90+
assert Faker::Emotion.adjective.is_a? String
91+
assert_not_english(Faker::Emotion.adjective)
92+
end
93+
8794
def test_ja_food_methods
8895
assert Faker::Food.sushi.is_a? String
8996
assert_not_english(Faker::Food.sushi)

0 commit comments

Comments
 (0)