Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

UI Translation Support #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

erisu
Copy link

@erisu erisu commented Apr 11, 2018

The language display is based from the browser's settings. The setting can be accessed by the JavaScript property navigator.language. The NavigatorLanguage.language is supported on all major browsers.

  1. If regional language translation exists, it will take first priority. (E.g. en-US)
  2. If regional language translation does not exist, but specific language exists, it will take second priority. (E.g. en)
  3. It will fall back to the default language when translation is not supplied for the requested language. (default = Chinese)
  4. "Translation Error" is returned when an incorrect key is used.

Additional Changes

  1. Fixed permission spelling and formatting of the permission error message to match with documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant