javascript - how to generate po file from js file using poedit -


i using gettext.js library localize contents generated js file. situation is, have create , write each , every po files manually. know can scan php files gettext strings using poedit. so, possible scan js files gettext strings using poedit?

achieved creating new parser of python language in poedit.

file > preferences > parsers > new

language:

js 

list of extension:

*.js 

parser command:

xgettext --language=python --force-po -o %o %c %k %f 

item in keyword list:

-k%k 

item in input files list:

%f 

source code charset:

--from-code=%c 

i found tutorial while searching on this, helped me attain situation tutorial here>>

actually tutorial in french , link google translated(to english) one.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -