Open iamaamir opened 1 year ago
@iamaamir Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
Hi @iamaamir, for this, we recommend that you disable the built-in i18n
hook and create a custom hook for adding ICU message support.
To disable the i18n
hook, you can add this to your apps .sailsrc
file at the top level (be sure the JSON is formatted correctly):
"hooks": {
"i18n": false
}
Node version: v18 Sails version (sails): 1.4.0 ORM hook version (sails-hook-orm): Sockets hook version (sails-hook-sockets): Organics hook version (sails-hook-organics): Grunt hook version (sails-hook-grunt): Uploads hook version (sails-hook-uploads): DB adapter & version (e.g. sails-mysql@5.55.5): Skipper adapter & version (e.g. skipper-s3@5.55.5):
sails uses i18n-2 which seems have no support for ICU Message Formatting and we have a strict requirement to use translation file(json files) in ICU Format only. but i could not find any doc to add support for ICU message format in Sails