rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: NaitLee on November 08, 2020, 02:14:58 AM

Title: A lightweight tool for webpage (template) client side localization
Post by: NaitLee on November 08, 2020, 02:14:58 AM
I made a new i18n tool with pure JavaScript: https://github.com/NaitLee/i18-N.js-Lite

You can use this to localize your webpage or template easily.
Just define some languages in your page and include the script. See the example at readme.md.
Even a single page of .html is fine. You can copy-paste all the script into a <script> tag.

Any requests please report :D
Title: Re: A lightweight tool for webpage (template) client side localization
Post by: dj on November 10, 2020, 05:00:31 AM
my method for translation
in 2.4 translation (https://github.com/dj0001/hfs-template/blob/master/addons/languages/en_V2.html#L52) (and in another project (https://github.com/dj0001/miband3-selfie/blob/master/kiox.htm#L27-L29))

Update: I saw, the nodes are automatically translated. Great.
I implemented my own version in my configurator (https://dj0001.github.io/hfs-template/addons/config.html)
Title: Re: A lightweight tool for webpage (template) client side localization
Post by: Brandonatrog on January 01, 2021, 10:55:17 AM
Check the version of the javascript your implementing in your header. You could compare your website header with the header off the nivoslider template. Copy/Paste all, change the CSS ofcourse...

Warning :
if you keep changing the title of your answers to an empty field, forcing me to correct them, I will end up seeing them as spam and having to throw your answers in the trash without notice.

Mars