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
Post a Comment