Core: Support Multi Language

Created on 22 Sep 2016  路  8Comments  路  Source: adonisjs/core

Hi. i cant find any document about this feature, how can i set some language and switch between them?

Most helpful comment

Working on same, will be published soon.

All 8 comments

I can't find any reference to Multi-language builtin support.

If you check the trello backlog, there's no mention to possibility develop it.
https://trello.com/b/yzpqCgdl/adonis-for-humans

I think if you realy need it, you can check the Website repo: https://github.com/adonisjs/adonis-documentation

You can use take the code used for the versions stuff,
like /X.X/about-us
and use like /{en|es|br}/about-us

(_tip_: You can use a Middleware to work which version to use or load a default)

I cannot checked if it works, but I think you can use the Config class to get your lang files, or implement with database using Lucid + Redis(to cache).

Working on same, will be published soon.

Thanks. This framework is very very useful. I switched from laravel. Thanks. I'm translating document to persian language. After finish i send it for you

Great. A multi language feature would be very useful.

Please make use of https://npmjs.org/package/adonis-antl. Docs will be published with 3.1

@tux-world What do you mean by "its not for multi language"?

Wait for the documentation to get released. For check docs here https://github.com/adonisjs/docs/blob/3.1/common-web-tools/13-internationalization.adoc

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings