zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
100 stars 56 forks source link

Is there any way to translate JS files? #35

Closed Dolphet closed 3 years ago

Dolphet commented 5 years ago

Hi, im trying to use some JS messages, my question is, could i use this package to translate JS files?

If is yes, pls can u give me an example?

thx in advance.

devuniverse commented 5 years ago

Unless JS is embedded within PHP there is no way. JS is on the flient side, while this package runs with PHP, argo at the server side.

zsbot commented 3 years ago

@Dolphet This package aims to translate strings using php functions in your Laravel application. There are other packages handling json and .js files, look it up on the web.

Thanks for your interest!