summaryrefslogtreecommitdiff
path: root/public/js/locale.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-27Add config option for cookie SameSite policyErik Michelson1-1/+1
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-08-13Restructured locale.js to be included into the editor's js bundleErik Michelson1-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>
2020-08-13Fixed setting moment.js locale to user-defined languageErik Michelson1-0/+1
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2020-06-08Set all cookies with sameSite: strictDavid Mehren1-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>
2017-10-23support Simplified Chinese and rename original zh to Traditional ChineseRwing1-0/+3
2017-03-09Use JavaScript Standard Style (part 2)BoHong Li1-20/+22
Fixed all fail on frontend code.
2016-10-23Update locale.jsPeter Dave Hello1-0/+2
Should change the lang been selected in the lang select/option menu.
2016-10-19Try to remove unused front-end dependencyWu Cheng-Han1-2/+0
2016-10-10Cover page is now workingYukai Huang1-1/+3
2016-08-19Add support of i18n with related patches and support "en" and "zh" locales ↵Wu Cheng-Han1-0/+24
for now