Skip to content

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

Merged
merged 64 commits into from
Feb 7, 2021
Merged

Feature/i18n #174

merged 64 commits into from
Feb 7, 2021

Conversation

Gonzom
Copy link
Contributor

@Gonzom Gonzom commented Feb 1, 2021

Closes #23

sMOKIK and others added 30 commits January 22, 2021 12:04
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
@Gonzom
Copy link
Contributor Author

Gonzom commented Feb 3, 2021

@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-io
Copy link

codecov-io commented Feb 5, 2021

Codecov Report

Merging #174 (23c7354) into develop (21faa13) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ
app/routers/agenda.py 100.00% <ø> (ø)
app/routers/profile.py 100.00% <ø> (ø)
app/database/models.py 96.61% <100.00%> (+0.14%) ⬆️
app/dependencies.py 100.00% <100.00%> (ø)
app/internal/languages.py 100.00% <100.00%> (ø)
app/main.py 96.77% <100.00%> (+0.22%) ⬆️
app/routers/invitation.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21faa13...23c7354. Read the comment docs.

@yammesicka
Copy link
Member

The code has some failing tests :(

@Gonzom Gonzom requested a review from yammesicka February 5, 2021 15:54
@yammesicka yammesicka merged commit 1e9f746 into PythonFreeCourse:develop Feb 7, 2021
@Gonzom Gonzom deleted the feature/i18n branch February 8, 2021 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants