Full translation
[vchess.git] / public / javascripts / components / variantSummary.js
index e6ec03a..16b06ce 100644 (file)
@@ -12,7 +12,7 @@ Vue.component('my-variant-summary', {
                                        </span>
                                </h4>
                                <p class="description text-center">
-                                       {{ vobj.desc }}
+                                       {{ translate(vobj.desc) }}
                                </p>
                        </a>
                </div>
@@ -22,4 +22,9 @@ Vue.component('my-variant-summary', {
                        return "/" + this.vobj.name;
                },
        },
+       methods: {
+               translate: function(text) {
+                       return translations[text];
+               },
+       },
 })