summaryrefslogtreecommitdiff
path: root/public/js/locale.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Restructured locale.js to be included into the editor's js bundleErik Michelson2020-08-131-25/+32
| | | | | | Until now client-side translations were only possible in the context of the intro/history page, because the locale-detection logic relied on the language selector as a source of available languages. The editor of course has no such selector. With this commit, I copied the list of available languages from the i18n-initialization (server-side) to support language detection in the editor too. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Fixed setting moment.js locale to user-defined languageErik Michelson2020-08-131-0/+1
| | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Set all cookies with sameSite: strictDavid Mehren2020-06-081-1/+2
| | | | | | Modern browsers do not support (or will stop supporting) sameSite: none (or no sameSite attribute) without the Secure flag. As we don't want everyone to be able to make requests with our cookies anyway, this commit sets sameSite to strict. See https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Set-Cookie/SameSite Signed-off-by: David Mehren <dmehren1@gmail.com>
* support Simplified Chinese and rename original zh to Traditional ChineseRwing2017-10-231-0/+3
|
* Use JavaScript Standard Style (part 2)BoHong Li2017-03-091-20/+22
| | | | Fixed all fail on frontend code.
* Update locale.jsPeter Dave Hello2016-10-231-0/+2
| | | Should change the lang been selected in the lang select/option menu.
* Try to remove unused front-end dependencyWu Cheng-Han2016-10-191-2/+0
|
* Cover page is now workingYukai Huang2016-10-101-1/+3
|
* Add support of i18n with related patches and support "en" and "zh" locales ↵Wu Cheng-Han2016-08-191-0/+24
for now