-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Japanese translations for Faker::Sports::Football
.
#2903
Add Japanese translations for Faker::Sports::Football
.
#2903
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thank you! ⚽
lib/locales/ja/football.yml
Outdated
ja: | ||
faker: | ||
football: | ||
teams: ["レアル・マドリード", "FCバルセロナ", "バレンシアCF", "アトレティコ・マドリード", "マンチェスター・ユナイテッド", "チェルシー", "リヴァプール", "アーセナル", "トッテナム・ホットスパー", "ACミラン", "インテル・ミラノ", "ASローマ", "ユヴェントス", "バイエルン・ミュンヘン", "ボルシア・ドルトムント", "シャルケ04", "ベンフィカ", "ガラタサライ", "PSVアイントホーフェン", "LAギャラクシー", "パリ・サンジェルマン"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost forgot: do you mind converting these into dash syntax? We have instructions here: https://github.com/faker-ruby/faker/blob/main/CONTRIBUTING.md#yaml-files
You can just run this script: bundle exec rake reformat_yaml['path-to-your-file']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the correction, squashed the commits, and force-pushed. Please review. Thank you!
hi @yamat47, could you reformat lib/locales/ja/football.yml so I can merge this? Thanks! |
65587e9
to
7cbc2c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reformatting!
Almost forgot - do you mind adding some tests to this and rebasing your branch? Thank you!
644a6fd
to
81ae746
Compare
@thdaraujo Thank you for the review. I've added automated tests that pass locally but are failing on CI, and I'm looking into why. I used the same style as the rest of the project for RuboCop and am unclear why it's failing. Any specifics you could provide would be helpful. Please let me know if you have any advice on how to proceed. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding tests!
To fix the Rubocop warning, you should use assert_kind_of
instead.
The failing omniauth spec can be ignored because it's flaky - #2943
Could you also rebase your branch? Thanks!
test/test_ja_locale.rb
Outdated
def test_ja_football_methods | ||
# The translation of "team" includes alphabets, so we cannot use assert_not_english for assertion. | ||
# Example: "FCバルセロナ" (FC Barcelona) | ||
assert Faker::Sports::Football.team.is_a? String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix the Rubocop warning:
assert Faker::Sports::Football.team.is_a? String | |
assert_kind_of String, Faker::Sports::Football.team |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thdaraujo Sorry for the delay in responding.
I have made the necessary corrections and force-pushed the changes. Could you please review them at your earliest convenience?
Thank you!
81ae746
to
79ce64c
Compare
79ce64c
to
9e3f456
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent, thank you!
Motivation / Background
This Pull Request is created to add new locale data for Japanese football teams, players, coaches, competition names, and positions to this library.
Additional information
This change is based on existing English data, translated by contributors who are native Japanese speakers.
To ensure the accuracy and quality of the translation, it has been reviewed by multiple native speakers knowledgeable in soccer.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
If you're proposing a new generator or locale: