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

Introduce mechanism to localize messages #36

Merged
merged 17 commits into from
Oct 16, 2024
Merged

Introduce mechanism to localize messages #36

merged 17 commits into from
Oct 16, 2024

Conversation

piroor
Copy link
Member

@piroor piroor commented Oct 16, 2024

This PR introduces a system to localize displayed messages.
Currently there is only "ja" locale.

@piroor piroor requested a review from HashidaTKS October 16, 2024 07:12
@HashidaTKS
Copy link
Contributor

HashidaTKS commented Oct 16, 2024

のように<html lang="ja">となっている場所もlangOffice.context.displayLanguageの値と合わせてあげる必要がありそうに思いました。もしくはlang指定自体なくても良いのかもしれません(その場合、cssで言語毎にスタイルを変えるとかがやりにくくなりそうですが)。

@piroor
Copy link
Member Author

piroor commented Oct 16, 2024

のように<html lang="ja">となっている場所もlangOffice.context.displayLanguageの値と合わせてあげる必要がありそうに思いました。もしくはlang指定自体なくても良いのかもしれません(その場合、cssで言語毎にスタイルを変えるとかがやりにくくなりそうですが)。

こちらのご指摘を承けて、langを動的に設定するように変更しました。

@piroor piroor requested a review from HashidaTKS October 16, 2024 08:05
Copy link
Contributor

@HashidaTKS HashidaTKS left a comment

Choose a reason for hiding this comment

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

<html lang="ja">

<html lang="ja">も同様に直した方が良いと思います。(実際には国際化が不要なhtmlだとは思いますが)

以上の対応が完了したら、マージして大丈夫そうに思います。

@piroor
Copy link
Member Author

piroor commented Oct 16, 2024

app.htmlはHTMLにはメッセージがなかったのでスルーしていましたが、確かにここも影響を受ける部分なので修正しました。
ご指摘ありがとうございます!

@piroor piroor requested a review from HashidaTKS October 16, 2024 08:29
Copy link
Contributor

@HashidaTKS HashidaTKS left a comment

Choose a reason for hiding this comment

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

LGTM! Thank!

@HashidaTKS HashidaTKS merged commit 4a6700b into main Oct 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants