X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=5f0fd44bf36a371ff1c2ae3c51dccf152b34af87;hb=247356cde3f4e36004942c5f57187d667f7ef27c;hp=31e9e5453998e842eeaf2e9ae4e85add656a3183;hpb=05084186679f39cf7e85d3e87a2d4d69a1fdddb3;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js index 31e9e545..5f0fd44b 100644 --- a/public/javascripts/components/problemSummary.js +++ b/public/javascripts/components/problemSummary.js @@ -10,11 +10,14 @@ Vue.component('my-problem-summary', {

{{ timestamp2date(prob.added) }}

- + `, methods: { + translate: function(text) { + return translations[text]; + }, getDiagram: function(fen) { const fenParsed = V.ParseFen(fen); return getDiagram({