Skip to content

i18n enhancements #38

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

i18n enhancements #38

wants to merge 1 commit into from

Conversation

Joungkyun
Copy link

Currently, template directories are found in the order listed in the
Language option in validator.conf.

Enhanced patches no longer use the Language option.

By referring to the Accept-Languages header value of the browser, the
template directory is found in Accept-Language order.

For examples:

For example, if Accept-Languages is:

Accept-Languages: ko-KR,ko:q=0.7,en-GB:q=0.5,en:q=0.3

The validator will find the template in the following order:

  1. template/ko_KR
  2. template/ko
  3. tempalte/en_GB
  4. template/en

If there is no template corresponding to Accept-Languages, template/en_US will be used.

Currently, template directories are found in the order listed in the
Language option in validator.conf.

Enhanced patches no longer use the Language option.

By referring to the Accept-Languages header value of the browser, the
template directory is found in Accept-Language order.

For examples:

For example, if Accept-Languages is:

```
Accept-Langauge: ko-KR,ko:q=1.0,en-GB:q=0.7,en:q=0.3
```

The validator will find the template in the following order:

1. template/ko_KR
1. template/ko
1. tempalte/en_GB
1. template/en

If there is no template corresponding to Accept-Languages, template/en_US will be used.
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.

1 participant