-
Notifications
You must be signed in to change notification settings - Fork 34
web: add support of internatialization (#11) #16
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
Conversation
| return err | ||
| } | ||
|
|
||
| func isOldStyleUserTemplate(root *template.Template) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention the issue that causes the creation of this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| return errors.Wrapf(err, "failed to parse template %q: %s", name, err) | ||
| } | ||
|
|
||
| if isOldStyleUserTemplate(root) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention that this code will be deprecated in the future major release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
==========================================
- Coverage 73.46% 72.77% -0.69%
==========================================
Files 8 8
Lines 539 518 -21
==========================================
- Hits 396 377 -19
+ Misses 112 107 -5
- Partials 31 34 +3
Continue to review full report at Codecov.
|
Proposed Changes
The PR adds support for the internationalization of the login page.