MeshCentral: customized handlebars files can not be translated

modifying views for a domain in meshcentral-web or meshcentral-web-domain2 do only work for language = en

The translation tool seems to not pick up these modified files and does not translate.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 40 (9 by maintainers)

Most upvoted comments

HUH? 😕

will try have a look tonight/2moz, as i havent changed anything for the translate since https://github.com/Ylianst/MeshCentral/pull/6027

so if you renamed the file to .backup and its translating ok BUT then rename your file back and its NOT translating ok, then the is something wrong in your file

its going to be very hard to work out what its not working?

if your happy to, email me the file and ill have a quick dig https://github.com/si458 -> email on left!

ok ive merged the PR, which means you create your files default.handlebars, login2.handlebars, etc in your views folder, then you can run node node_modules/meshcentral --translate and let it translate/minify all your files! you can also use https://MYMESHSERVER.COM/translator.htm, edit translations, then save to server and run the --translate command (DONT USE THE TRANSLATE SERVER BUTTON IN THE WEB UI!) im still looking into the button as it only translates the default views folder inside meshcentral and not your web folders you create