node.js - Using Kraken for node, How can I apply localisation url to all routes (i18n)? -
i have node application using kraken uses i18n (makara) localization , dust templates. have defined many routes within application renders en localisation correctly (being default / fallback) without setting else up. e.g.
- /help
- /about
- /test
- ...
i want have localized url easy sharing etc. being /:lang/help , below returning correct dust template:
- /fr/help
- /fr/about
- /fr/test
whats ideal middleware put in place avoid having edit each route have created?
Comments
Post a Comment