New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeago lang configuration #1563
Comments
The source code should help with this. |
Yes from what I understand, a second arg can specify lang,
BTW, documentation is missing on this. |
That only occurs if the language passed in is empty, so it would default to the global configuration value set in the config |
Yes I tried to set to "fr" in Config, but instead to have I will try to dig further and propose a documentation if I understand what's going on ... |
Sounds like you are missing the french translations for
So you need to define in the french translation file what |
OK, but by looking at timeago code, there is already a bunch of variables for several languages https://pkg.go.dev/github.com/xeonx/timeago#pkg-variables What about use those by default and set a config variable to fall back in current behavior? |
See PR #1564 |
Hi,
it is not clear how to configure 'timeago' language in revel, different from 'en'.
Code look to refer to a default language in Config, but no documentation about that.
Any clue ?
The text was updated successfully, but these errors were encountered: