Skip to content

Sails 1.0 internationalization issue #4343

Description

@vkkmehra

Hello,

I have an issue with sails internationalization. I have created a simple example for that. I want to translate a key to a different language other than default language in the controller. My default language is en but in international controller I want to translate welcome in french. I referred few articles but got no success in old sails documentation there was a way

sails.__({
phrase: 'Welcome',
locale: 'fr'
});

to translate a key on the fly but it is running into error.

I am using

Sails version 1.0.0-45
Node version 8.9.1
npm version 5.5.1
DB Adaptor : sails-postgresql
Operating System : Windows 7, 8 as well as Ubuntu

The example project is here on git hub https://github.com/vkkmehra/international

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions