Translations
[vchess.git] / client / src / views / About.vue
index 6b2f27c..3b1a2cb 100644 (file)
@@ -2,10 +2,25 @@
 main
   .row
     .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
-      p TODO: give github URL, tell website story...
-      a(href="https://github.com/yagu0/vchess") contribute...
+      div(v-html="content")
 </template>
 
+<script>
+import { store } from "@/store";
+
+export default {
+  name: 'my-about',
+  computed: {
+    content: function() {
+      return require("raw-loader!@/translations/about/" + store.state.lang + ".pug")
+        // Next two lines fix a weird issue after last update (2019-11)
+        .replace(/\\[n"]/g, " ")
+        .replace('module.exports = "', '').replace(/"$/, "");
+    },
+  },
+};
+</script>
+
 <style lang="sass">
 .warn
   padding: 3px