Skip to content
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

feat: support new dictionary enums #35

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lib/utils/enum_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ extension FieldExtension on Field {
return 'biology';
case Field.botany:
return 'botany';
case Field.boxing:
return 'boxing';
case Field.buddhism:
return 'Buddhism';
case Field.business:
Expand All @@ -229,8 +231,12 @@ extension FieldExtension on Field {
return 'card games';
case Field.chemistry:
return 'chemistry';
case Field.chineseMythology:
return 'Chinese Mythology';
case Field.christianity:
return 'Christianity';
case Field.civilEngineering:
return 'civil engineering';
case Field.clothing:
return 'clothing';
case Field.computing:
Expand All @@ -253,6 +259,8 @@ extension FieldExtension on Field {
return 'engineering';
case Field.entomology:
return 'entomology';
case Field.figureSkating:
return 'figure skating';
case Field.film:
return 'film';
case Field.finance:
Expand Down Expand Up @@ -283,6 +291,10 @@ extension FieldExtension on Field {
return 'hanafuda';
case Field.horseRacing:
return 'horse racing';
case Field.internet:
return 'internet';
case Field.japaneseMythology:
return 'Japanese mythology';
case Field.kabuki:
return 'kabuki';
case Field.law:
Expand All @@ -307,8 +319,12 @@ extension FieldExtension on Field {
return 'meteorology';
case Field.military:
return 'military';
case Field.mineralogy:
return 'mineralogy';
case Field.mining:
return 'mining';
case Field.motorsport:
return 'motorsport';
case Field.music:
return 'music';
case Field.noh:
Expand All @@ -333,6 +349,8 @@ extension FieldExtension on Field {
return 'politics';
case Field.printing:
return 'printing';
case Field.professionalWrestling:
return 'professional wrestling';
case Field.psychiatry:
return 'psychiatry';
case Field.psychoanalysis:
Expand All @@ -357,12 +375,16 @@ extension FieldExtension on Field {
return 'stock market';
case Field.sumo:
return 'sumo';
case Field.surgery:
return 'surgery';
case Field.telecommunications:
return 'telecommunications';
case Field.trademark:
return 'trademark';
case Field.television:
return 'television';
case Field.veterinaryTerms:
return 'veterinary terms';
case Field.videoGames:
return 'video games';
case Field.zoology:
Expand Down Expand Up @@ -654,6 +676,8 @@ extension LanguageSourceExtension on LanguageSource {
return 'Ukrainian';
case LanguageSource.urd:
return 'Urdu';
case LanguageSource.uzb:
return 'Uzbek';
case LanguageSource.vie:
return 'Vietnamese';
case LanguageSource.yid:
Expand Down Expand Up @@ -692,6 +716,8 @@ extension ReadingInfoExtension on ReadingInfo {
return 'irregular kana';
case ReadingInfo.outdatedKana:
return 'outdated kana';
case ReadingInfo.rareKanaForm:
return 'rare kana form';
case ReadingInfo.searchOnlyForm:
return 'search only form';
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "9e1afa2"
resolved-ref: "9e1afa28602e8b6c405f9ce39ddc7c153cf957f7"
ref: ee7a097
resolved-ref: ee7a0971e28736027c03b3db8fe5ac8f039579e3
url: "https://github.com/Moseco/sagase_dictionary"
source: git
version: "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies:
sagase_dictionary:
git:
url: https://github.com/Moseco/sagase_dictionary
ref: '9e1afa2'
ref: 'ee7a097'
url_launcher: ^6.1.12
dio: ^5.3.3
in_app_review: ^2.0.8
Expand Down