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

web: Refactor i18n #14

Open
sauricat opened this issue Dec 4, 2022 · 7 comments
Open

web: Refactor i18n #14

sauricat opened this issue Dec 4, 2022 · 7 comments

Comments

@sauricat
Copy link
Member

sauricat commented Dec 4, 2022

No description provided.

@LS-KR
Copy link
Member

LS-KR commented Jul 7, 2023

#25

本来就是翻译两个页面怎么就开始重构i18n了(思考

@sauricat
Copy link
Member Author

sauricat commented Jul 8, 2023

辛苦了,是好的。本来的 i18n 做得太奇怪了……

@sauricat
Copy link
Member Author

one-among-us/data#36
Hykilpikonna, [2023-07-10 13:11]
因为我们所有条目都有英文版,好像还没有考虑加载一个没有英文页面的条目的时候要怎么办

Shu, [2023-07-10 13:13]
嗯对,之前遇到过问题,好像就是,整个没法编译了

Shu, [2023-07-10 13:13]
需要有一个 default 的 md 文件放在那里,即使下面的为空

Shu, [2023-07-10 13:13]
这个我不知道应该怎么说

Hykilpikonna, [2023-07-10 13:14]

Hykilpikonna, [2023-07-10 13:14]
看来还需要改一改(x

Shu, [2023-07-10 13:14]
对 缺省设置感觉一直都不好,没有 fallback

Shu, [2023-07-10 13:15]
我本来的设想是,比如说,简中页面有了,然后繁中缺的话,自动 fallback 调用一下字码转换器,英文缺的话,自动 fallback 跳转到比如 google web translation etc

Shu, [2023-07-10 13:15]
但是我这个设想也可能有些人不同意或者没做

@sauricat sauricat changed the title Refactor frontend i18n structure web: Refactor i18n Jul 10, 2023
@sauricat
Copy link
Member Author

桂桂的两种想法:

  1. 语言缺省就不显示或者显示 “Only available in ___”,这样也许可以分开英文社群和中文社群的 exclusive 条目,有交集再跨语言
  2. 把所有条目都用某种工具翻译到所有语言 (e.g. google web translation)

@GekkaSaori
Copy link

希望添加手动语言切换的选项而不是只按浏览器的语言设置显示页面。总感觉现在这样蛮奇怪的。还是出了奇怪的问题我的浏览器没有正常显示切换语言的按钮?

@LS-KR
Copy link
Member

LS-KR commented Jul 20, 2023

image
正常情况下右下角是会有两个按钮的qwq

@sauricat
Copy link
Member Author

@GekkaSaori 请问你是什么浏览器呢
这边有人说用 tor 也出现了类似的问题 #27

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

No branches or pull requests

4 participants