i18n.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Internationalization / Localization Settings
  3. * (sails.config.i18n)
  4. *
  5. * If your app will touch people from all over the world, i18n (or internationalization)
  6. * may be an important part of your international strategy.
  7. *
  8. * For a complete list of options for Sails' built-in i18n support, see:
  9. * https://sailsjs.com/config/i-18-n
  10. *
  11. * For more info on i18n in Sails in general, check out:
  12. * https://sailsjs.com/docs/concepts/internationalization
  13. */
  14. module.exports.i18n = {
  15. /***************************************************************************
  16. * *
  17. * Which locales are supported? *
  18. * *
  19. ***************************************************************************/
  20. locales: ['en', 'es', 'fr', 'de'],
  21. /****************************************************************************
  22. * *
  23. * What is the default locale for the site? Note that this setting will be *
  24. * overridden for any request that sends an "Accept-Language" header (i.e. *
  25. * most browsers), but it's still useful if you need to localize the *
  26. * response for requests made by non-browser clients (e.g. cURL). *
  27. * *
  28. ****************************************************************************/
  29. // defaultLocale: 'en',
  30. /****************************************************************************
  31. * *
  32. * Path (relative to app root) of directory to store locale (translation) *
  33. * files in. *
  34. * *
  35. ****************************************************************************/
  36. // localesDirectory: 'config/locales'
  37. };