projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git]
/
client
/
src
/
utils
/
language.js
diff --git
a/utils/language.js
b/client/src/utils/language.js
similarity index 82%
rename from
utils/language.js
rename to
client/src/utils/language.js
index
52c3842
..
cff89ae
100644
(file)
--- a/
utils/language.js
+++ b/
client/src/utils/language.js
@@
-1,3
+1,7
@@
+// TODO: adapt for client side https://stackoverflow.com/a/4079798
+// ==> Each translation file should be loaded dynamically
+// (each rules definition too, + modal welcome)
+
// Select a language based on browser preferences, or cookie
module.exports = function(req, res)
{
// Select a language based on browser preferences, or cookie
module.exports = function(req, res)
{