-
-
Notifications
You must be signed in to change notification settings - Fork 813
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
Centralize Translation Functions for Common Keys - Part 1 #2002
Merged
palisadoes
merged 27 commits into
PalisadoesFoundation:develop
from
pranshugupta54:frontend-translations
May 26, 2024
+4,116
−4,520
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6e71f97
folder restructure
pranshugupta54 ae93cce
namespace added
pranshugupta54 dfa6b2b
fix for 'register' common
pranshugupta54 0c3d2f3
feat: Update screens to use tCommon for localization
pranshugupta54 762ef11
feat: Update screens to use tCommon for localization
pranshugupta54 62397e7
feat: Update screens to use tCommon for localization
pranshugupta54 c5b2a9d
feat: Update screens to use tCommon for localization - yes no
pranshugupta54 4886d13
feat: Update screens to use tCommon for localization - saveChanges
pranshugupta54 1beebb3
feat: Update screens to use tCommon for localization - email, name, pass
pranshugupta54 f741a5d
feat: Update screens to use tCommon for localization
pranshugupta54 e26e6ae
remove pass
pranshugupta54 14ccda1
Update localization for first name and last name fields
pranshugupta54 3660816
tCommon fixes
pranshugupta54 6abeab2
Update localization
pranshugupta54 055495b
Update UsersTableItem component to remove unnecessary code and improv…
pranshugupta54 48c5edf
Update common.json with startTime and endTime translations
pranshugupta54 9c372e1
Update localization for name field in screens
pranshugupta54 da5f423
Update localization for enterLocation field
pranshugupta54 0bd9781
translations in test
pranshugupta54 960084c
chore: Update OrgPostCard.test.tsx with language detector mock
pranshugupta54 74061fb
error translation fix
pranshugupta54 f252e5d
Refactor UsersTableItem component to optimize performance and remove …
pranshugupta54 19cf745
Update common.json with startTime and endTime translations
pranshugupta54 36a97e3
Update error translations in French, Hindi, Spanish, and Chinese locales
pranshugupta54 3ff0d34
Merge branch 'develop' into frontend-translations
pranshugupta54 2087439
fix variable
pranshugupta54 b58811e
fix tests usertableitem
pranshugupta54 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"firstName": "First Name", | ||
"lastName": "Last Name", | ||
"searchByName": "Search By Name", | ||
"loading": "Loading...", | ||
"endOfResults": "End of results", | ||
"noResultsFoundFor": "No results found for ", | ||
"edit": "Edit", | ||
"admins": "Admins", | ||
"admin": "ADMIN", | ||
"user": "USER", | ||
"superAdmin": "SUPERADMIN", | ||
"members": "Members", | ||
"logout": "Logout", | ||
"login": "Login", | ||
"register": "Register", | ||
"menu": "Menu", | ||
"settings": "Settings", | ||
"users": "Users", | ||
"requests": "Requests", | ||
"OR": "OR", | ||
"cancel": "Cancel", | ||
"close": "Close", | ||
"create": "Create", | ||
"delete": "Delete", | ||
"done": "Done", | ||
"yes": "Yes", | ||
"no": "No", | ||
"filter": "Filter", | ||
"search": "Search", | ||
"description": "Description", | ||
"saveChanges": "Save Changes", | ||
"displayImage": "Display Image", | ||
"enterEmail": "Enter Email", | ||
"emailAddress": "Email Address", | ||
"email": "Email", | ||
"name": "Name", | ||
"enterPassword": "Enter Password", | ||
"password": "Password", | ||
"confirmPassword": "Confirm Password", | ||
"forgotPassword": "Forgot Password ?", | ||
"talawaAdminPortal": "Talawa Admin Portal", | ||
"address": "Address", | ||
"location": "Location", | ||
"enterLocation": "Enter Location", | ||
"joined": "Joined", | ||
"startDate": "Start Date", | ||
"endDate": "End Date", | ||
"startTime": "Start Time", | ||
"endTime": "End Time" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"talawaApiUnavailable": "Talawa-API service is unavailable!. Is it running? Check your network connectivity too.", | ||
"notFound": "Not found", | ||
"unknownError": "An unknown error occurred. Please try again later. {{msg}}", | ||
"notAuthorised": "Sorry! you are not Authorised!", | ||
"errorSendingMail": "Error sending mail", | ||
"emailNotRegistered": "Email not registered", | ||
"notFoundMsg": "Oops! The Page you requested was not found!" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@coderabbitai review changes in this file
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.
@pranshugupta54, I've reviewed the changes in the
compare_translations.py
file. Here are my observations:load_translation
FunctionImprovements:
Suggestions:
ValueError
for different types of errors (empty file, JSON decoding). It might be beneficial to introduce custom exceptions for different error types for more granular error handling.check_translations
FunctionImprovements:
common.json
,errors.json
,translation.json
) instead of a singleen.json
. This is a significant improvement as it allows the script to be more flexible and comprehensive in managing different translation files.Suggestions:
Overall, the changes are quite beneficial, enhancing the functionality, error handling, and robustness of the script. If you have any specific areas you'd like further insight on or additional features you're considering, feel free to let me know!