Saving state (unfinished styling on variant page)
[vchess.git] / views / modal-lang.pug
diff --git a/views/modal-lang.pug b/views/modal-lang.pug
new file mode 100644 (file)
index 0000000..f15d063
--- /dev/null
@@ -0,0 +1,27 @@
+input#modalLang.modal(type="checkbox")
+div(role="dialog")
+       #language.card
+               label.modal-close(for="modalLang")
+               .section
+                       fieldset
+                               -
+                                       var langName = {
+                                               "fr": "French",
+                                               "en": "English",
+                                       }
+                               label(for="langSelect") Preferred language?
+                               select#langSelect(onChange="setLanguage(event)")
+                                       each langCode in languages
+                                               option(value=langCode selected=(lang==langCode))
+                                                       =langName[langCode]
+               .section
+                       h3.blue Contribute
+                       p
+                               | Browse the 
+                               a(href="https://github.com/yagu0/vchess/tree/master/views")
+                                       | github repository
+                               | : welcome/en.pug and all files rules/*/en.pug
+                               | should be translated. When it's done, send me the files: 
+                               a(href="mailto:contact@vchess.club?subject=[vchess.club] translation")
+                                       | contact@vchess.club
+                               | . Thanks!