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

improve: 辞書ファイルの接頭辞を削除 #284

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

mj-hd
Copy link
Contributor

@mj-hd mj-hd commented Jul 17, 2024

概要

レビュー観点

レビューレベル

  • Lv1: ぱっとみて違和感がないかチェックして Approve する
  • Lv2: 仕様レベルまで理解して、仕様通りに動くかある程度検証して Approve する
  • Lv3: 実際に環境で動作確認したうえで Approve する

レビュー優先度

  • すぐに見てもらいたい ( hotfix など ) 🚀
  • 今日中に見てもらいたい 🚗
  • 今日〜明日中で見てもらいたい 🚶
  • 数日以内で見てもらいたい 🐢

画像 / 動画

確認したこと

  • ある程度触ってみて動作に問題がないこと

動作確認手順

備考

@github-actions github-actions bot added @apps/app Application development @packages/features/setting packages features setting package labels Jul 17, 2024
@yumemi-team-review-requester yumemi-team-review-requester bot requested review from a team, rizumita and K9i-0 and removed request for a team July 17, 2024 09:20
Copy link

Ready for review 🚀

{
"@@locale": "ja",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そのままだと、ファイル名から言語を推定できず、以下のエラーがでていました。
Make sure that the locale is specified in the file's '@@locale' property or as part of the filename (e.g. file_en.arb)

回避するために、明示的に言語名を記述しています

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mj-hd
あー、、 xx_ja.arb とかにしないとこの指定が必要になってくるのですね。。
こうなると、新しく作成する度にこの指定を追記しないといけないのですね。。

この対応についてはご相談させてください 🙏

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(なんのためのプロパティなんだと思ってたからスッキリ)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mj-hd @K9i-0
一律、 app_ja.arb とするのはいかがでしょう?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app_ja.arb も一般的で良さそうですね。

実は元の形でもファイル検索もしやすいですし、名前が長いだけで短く変更するメリットそこまでなかったりしないでしょうか?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mj-hd

実は元の形でもファイル検索もしやすいですし、名前が長いだけで短く変更するメリットそこまでなかったりしないでしょうか?

ファイル検索のことを全然考慮できていませんでした、、!
たしかにファイルを探す時にパッケージ名で検索できると良さそうですね。

となると、命名規則を整理して修正していただくほうが良さそうですね、、!
以下のようにするのはいかがでしょうか?

  • apps/app
    • app_ja.arb
  • cores
    • cores_{{core_name.snakeCase()}}_ja.arb
  • features
    • features_{{feature_name.snakeCase()}}_ja.arb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!そちらで修正してみます

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!お願いします🙇‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blendthink 修正しました!

Copy link

github-actions bot commented Jul 17, 2024

Visit the preview URL for this PR (updated for commit 8d0f5da):

https://flutter-mobile-project-template-catalog--pr284-improve-kq6uacr0.web.app

(expires Sun, 28 Jul 2024 22:33:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9ea56735a63d07a7cfe62eb204b0528284c37c23

@mj-hd mj-hd requested a review from blendthink July 19, 2024 10:39
Copy link
Member

@blendthink blendthink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご対応ありがとうございました!
LGTM です!

@mj-hd mj-hd merged commit ea18d7f into main Jul 21, 2024
12 checks passed
@mj-hd mj-hd deleted the improve/rename-arb-shorter branch July 21, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@apps/app Application development @packages/features/setting packages features setting package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve]: arb ファイルの名前を短くする
3 participants