-
Notifications
You must be signed in to change notification settings - Fork 922
通过解析 IANA 语言子标签注册表增强本地化功能 #4675
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
cb36496
update
Glavo 3ef7965
update
Glavo 64ca89c
update
Glavo 4e4ac98
update
Glavo 766bea8
update
Glavo 495b8a5
update
Glavo 725c772
update
Glavo 968913c
update
Glavo 4a22ae2
update
Glavo 6acd799
update
Glavo 473d585
update
Glavo 49fce66
update
Glavo 2a608f6
update
Glavo cc4e6e4
update
Glavo 58d3355
update
Glavo 63dfd9c
update
Glavo e64ff01
update
Glavo ae849b0
update
Glavo 61032a0
update
Glavo a663c3b
Merge remote-tracking branch 'upstream/main' into iana
Glavo 5bdb63c
update
Glavo 68f4a06
update
Glavo cb1df2a
update
Glavo b046953
update
Glavo 1faa2bb
update
Glavo 866a83a
update
Glavo 19802fd
update
Glavo e0a32c2
update
Glavo 09b2f50
update
Glavo bb0dca8
update
Glavo 331c34d
update
Glavo f87aaa2
update
Glavo 189e94a
Update docs/Localization_zh.md
Glavo 4470762
update
Glavo a4852de
Merge remote-tracking branch 'upstream/main' into iana
Glavo 28d1b5a
update
Glavo 0a51647
update
Glavo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
HMCLCore/src/main/resources/assets/lang/default_script.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| Arab,ar,fa,ps,ur | ||
| Armn,hy | ||
| Beng,as,bn | ||
| Blis,zbl | ||
| Cyrl,ab,be,bg,kk,mk,ru,uk | ||
| Deva,hi,mr,ne,kok,mai | ||
| Ethi,am,ti | ||
| Geor,ka | ||
| Grek,el | ||
| Gujr,gu | ||
| Guru,pa | ||
| Hant,lzh | ||
| Hebr,he,yi | ||
| Jpan,ja | ||
| Khmr,km | ||
| Knda,kn | ||
| Kore,ko | ||
| Laoo,lo | ||
| Latn,af,ay,bs,ca,ch,cs,cy,da,de,en,eo,es,et,eu,fi,fj,fo,fr,fy,ga,gl,gn,gv,hr,ht,hu,id,is,it,kl,la,lb,ln,lt,lv,mg,mh,ms,mt,na,nb,nd,nl,nn,no,nr,ny,om,pl,pt,qu,rm,rn,ro,rw,sg,sk,sl,sm,so,sq,ss,st,sv,sw,tl,tn,to,tr,ts,ve,vi,xh,zu,dsb,frr,frs,gsw,hsb,men,nds,niu,nso,tem,tkl,tmh,tpi,tvl,tailo,pinyin,hepburn,pehoeji,tongyong,wadegile | ||
| Mlym,ml | ||
| Mymr,my | ||
| Nkoo,nqo | ||
| Orya,or | ||
| Sinh,si | ||
| Taml,ta | ||
| Telu,te | ||
| Thaa,dv | ||
| Thai,th | ||
| Tibt,dz |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The empty language defaulting to 'en' is embedded in multiple places (here and in getPreferredLanguage). Consider extracting this to a constant or single method to ensure consistency across the codebase.