Skip to content

Commit

Permalink
Added Chinese Taiwan support (and changed Chinese trad and simple cod…
Browse files Browse the repository at this point in the history
…es to correct ones).
  • Loading branch information
robertocarroll committed Mar 8, 2017
1 parent a4f7484 commit abe2683
Show file tree
Hide file tree
Showing 3 changed files with 663 additions and 438 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -41,7 +41,7 @@ Each country is an object with the countries array for that year. All countries
### Languages
The languages come from a [language file](/lang/dictionary.json) which includes the translations for all the terms in the application. This approach keeps the data clean and avoids duplication.

To set the language add the language code in a variable in the embed url. Supported languages are ['ar', 'en', 'es', 'fr', 'zh-Hans','zh-Hant']. If it is not recognised, it will default to English.
To set the language add the language code in a variable in the embed url. Supported languages are ['ar', 'en', 'es', 'fr', 'zh_Hans','zh_Hant', 'zh_TW']. If it is not recognised, it will default to English.

To set the application to Arabic, for example, add `?lang=ar` to the end of the url.

Expand Down
2 changes: 1 addition & 1 deletion javascripts/amnesty.js
Expand Up @@ -32,7 +32,7 @@ var sliderPlayPauseButton;
var sliderPlayPauseButtonState;

var defaultLang= "en";
var supportedLanguages = ['ar', 'en', 'es', 'fr','zh-Hans','zh-Hant'];
var supportedLanguages = ['ar', 'en', 'es', 'fr','zh_Hans','zh_Hant','zh_TW'];
var lang = getLangFromQueryString();
var dir;
setLangAndDir(lang);
Expand Down

0 comments on commit abe2683

Please sign in to comment.