node.js - Grunt: Compile pages in multiple languages (Translation) -


i have simple issue still unable find solution. site should "shipped" (= grunt publish) in 2 languages in 2 different folders.

what imagine

index.html

<!doctype html> <html> <body>     <. hello_world /> </body> </html> 

translation.json

translation: [     hello_world: [         en: "hello world!",         de: "hallo welt!"     ] ] 

should compiled to

en/index.html

<!doctype html> <html> <body>     hello world! </body> </html> 

de/index.html

<!doctype html> <html> <body>     hallo welt! </body> </html> 

does know such grunt task?

to interested in doing same, there angular-gettext / grunt-angular-gettext can that.

i chose angular-translate in end anyways, since compiles 1 version of site including languages meaning user can change language @ runtime.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -