-
Notifications
You must be signed in to change notification settings - Fork 52
Feature/i18n #174
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
Feature/i18n #174
Conversation
This feature includes the core functions added to /internal, English and Hebrew json files, removal of text strings from the html files, updates to the routes and model updates. Also included are tests. Please note, that this feature is waiting on user registration for final hooks.
… move foreignkey to last column as requested in CR. Additional minor doc fixes.
This change hopefully adds this line to the code coverage.
This change reduces the amount of imports needed and also uses one dir path for both tests and live.
… and "localized" and the creation of the Jinja2TemplateResponse is now handled in internal/utilities.
The translations are now handled with @lru_cache and the function is only re-handled when a new language code parameter is used. This should be the last edit (unless any crash) to this version of the translation feature.
Changed i18n system as requested in code review.
Fixed missing curly parenthesis in profile.html Changed _get_supported_languages() into a generator expression Merged testing parameters in test_language.py
@yammesicka this wasn't merged last time. Please merge this before the other PR or that PR probably won't work. |
Reduce the if statement by using the _get_language_directory() as the default value instead of None.
Codecov Report
@@ Coverage Diff @@
## develop #174 +/- ##
===========================================
+ Coverage 99.22% 99.23% +0.01%
===========================================
Files 40 41 +1
Lines 1546 1576 +30
===========================================
+ Hits 1534 1564 +30
Misses 12 12
Continue to review full report at Codecov.
|
The code has some failing tests :( |
# Conflicts: # app/main.py # requirements.txt
# Conflicts: # app/main.py # requirements.txt
Closes #23