Skip to content

Commit

Permalink
Email & Etherpad template localisation using Crowdin. Delete old temp…
Browse files Browse the repository at this point in the history
…late files, fix Etherpad template rendering - #41
  • Loading branch information
tiblu committed Nov 14, 2018
1 parent 8d4902e commit 785f354
Show file tree
Hide file tree
Showing 29 changed files with 6 additions and 3,210 deletions.
349 changes: 0 additions & 349 deletions languages/en.json

This file was deleted.

348 changes: 0 additions & 348 deletions languages/et.json

This file was deleted.

349 changes: 0 additions & 349 deletions languages/ru.json

This file was deleted.

7 changes: 6 additions & 1 deletion libs/cosEtherpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ module.exports = function (app) {
if (html) {
return Promise.resolve(html);
} else {
return fs.readFileAsync(path.join(TEMPLATE_ROOT, 'etherpad/build/default_' + lang + '.html'));
return fs
.readFileAsync(path.join(TEMPLATE_ROOT, 'etherpad/build/default_' + lang + '.html'))
.then(function (buffer) {
return buffer.toString();
});
}
})
.then(function (padHtml) {
console.log('padHTML', padHtml);
return etherpadClient.setHTMLAsync({
padID: topicId,
html: padHtml
Expand Down
79 changes: 0 additions & 79 deletions views/emails/build/accountVerification_en.mu

This file was deleted.

79 changes: 0 additions & 79 deletions views/emails/build/accountVerification_et.mu

This file was deleted.

79 changes: 0 additions & 79 deletions views/emails/build/accountVerification_ru.mu

This file was deleted.

Loading

0 comments on commit 785f354

Please sign in to comment.