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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -