diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-03-09 13:38:22 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-03-09 13:38:22 +0100 |
commit | 493b116f73ec3912ca7af3d6ece3434279cbcfb5 (patch) | |
tree | b6955491311fb0d810e9de9a7dd9b8059d04a10c /webapp/swiftstory-config.js | |
parent | 735bc5af0929392f27386aa3fa0c26d39f300672 (diff) |
renamed the project SwiftStory
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'webapp/swiftstory-config.js')
-rw-r--r-- | webapp/swiftstory-config.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/swiftstory-config.js b/webapp/swiftstory-config.js new file mode 100644 index 0000000..9a6be3c --- /dev/null +++ b/webapp/swiftstory-config.js @@ -0,0 +1,13 @@ +$(document).ready(function() { + var lang; + var hostname = document.location.hostname; + + /* XXX replace this with your desired behaviour */ + if (hostname.substring(0, 3) === 'fr.') { + lang = 'fr'; + } else if (hostname.substring(0, 3) === 'en.') { + lang = 'en'; + } + + swst.set_lang(lang); +}); |