X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fmodal-lang.pug;fp=views%2Fmodal-lang.pug;h=f15d0634827386b435d9c5c7fa2aa3d2956a713d;hb=e6dcb115eab52abefa1d54a65af546cf5a0153e9;hp=0000000000000000000000000000000000000000;hpb=9a3c9f790aa28fd4708faefe41b4624173922c8e;p=vchess.git diff --git a/views/modal-lang.pug b/views/modal-lang.pug new file mode 100644 index 00000000..f15d0634 --- /dev/null +++ b/views/modal-lang.pug @@ -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!