mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Restore i18n.js to remove deletion from PR
This commit is contained in:
parent
ae0c23eada
commit
0fd2bd3bc5
1 changed files with 43 additions and 0 deletions
43
server/config/i18n.js
Normal file
43
server/config/i18n.js
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/**
|
||||||
|
* Internationalization / Localization Settings
|
||||||
|
* (sails.config.i18n)
|
||||||
|
*
|
||||||
|
* If your app will touch people from all over the world, i18n (or internationalization)
|
||||||
|
* may be an important part of your international strategy.
|
||||||
|
*
|
||||||
|
* For a complete list of options for Sails' built-in i18n support, see:
|
||||||
|
* https://sailsjs.com/config/i-18-n
|
||||||
|
*
|
||||||
|
* For more info on i18n in Sails in general, check out:
|
||||||
|
* https://sailsjs.com/docs/concepts/internationalization
|
||||||
|
*/
|
||||||
|
|
||||||
|
module.exports.i18n = {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Which locales are supported?
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
locales: ['en-GB', 'en-US', 'es-ES', 'it-IT', 'ru-RU'],
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* What is the default locale for the site? Note that this setting will be
|
||||||
|
* overridden for any request that sends an "Accept-Language" header (i.e.
|
||||||
|
* most browsers), but it's still useful if you need to localize the
|
||||||
|
* response for requests made by non-browser clients (e.g. cURL).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
defaultLocale: process.env.DEFAULT_LANGUAGE || 'en-US',
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Path (relative to app root) of directory to store locale (translation)
|
||||||
|
* files in.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// localesDirectory: 'config/locales',
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue