i18n.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. *
  9. * For more informationom i18n in Sails, check out:
  10. * http://sailsjs.org/#/documentation/concepts/Internationalization
  11. *
  12. * For a complete list of i18n options, see:
  13. * https://github.com/mashpie/i18n-node#list-of-configuration-options
  14. *
  15. *
  16. */
  17. module.exports.i18n = {
  18. /***************************************************************************
  19. * *
  20. * Which locales are supported? *
  21. * *
  22. ***************************************************************************/
  23. // locales: ['en', 'es', 'fr', 'de']
  24. /****************************************************************************
  25. * *
  26. * What is the default locale for the site? Note that this setting will be *
  27. * overridden for any request that sends an "Accept-Language" header (i.e. *
  28. * most browsers), but it's still useful if you need to localize the *
  29. * response for requests made by non-browser clients (e.g. cURL). *
  30. * *
  31. ****************************************************************************/
  32. // defaultLocale: 'en',
  33. /****************************************************************************
  34. * *
  35. * Automatically add new keys to locale (translation) files when they are *
  36. * encountered during a request? *
  37. * *
  38. ****************************************************************************/
  39. // updateFiles: false,
  40. /****************************************************************************
  41. * *
  42. * Path (relative to app root) of directory to store locale (translation) *
  43. * files in. *
  44. * *
  45. ****************************************************************************/
  46. // localesDirectory: '/config/locales'
  47. };