-
-
Notifications
You must be signed in to change notification settings - Fork 201
Introduce i18n framework for static pages and tool alerts with dynamic language switching #119
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
Open
tommyvange
wants to merge
24
commits into
alam00000:main
Choose a base branch
from
tommyvange:ttb-add-translation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
- Added support for JSON module imports in TypeScript. - Created translation files for English and Norwegian languages. - Developed i18n module to handle language detection and translations. - Updated HTML to include data attributes for translation. - Enhanced main application to initialize i18n and manage dynamic translations. - Documented the i18n system and usage guidelines in I18N.md and TRANSLATION_SUMMARY.md.
…ved privacy messaging
…glish and Norwegian
…nd conditions pages
…in English and Norwegian
…ile structure, and best practices
…ssing features - Updated user-facing messages to utilize translation keys for better localization support. - Added new translation keys in English and Norwegian for various alerts and processing messages.
… in PDF processing
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This pull request:
about.html,contact.html, andfaq.html) by introducing i18n data attributes to headings, navigation links, section labels, and other key text elements. It also injects a main JavaScript module for handling dynamic language switching. The changes ensure that all user-facing text can be translated and that a language switcher component can be dynamically added to the navigation menus.Fixes #28
Type of change
Please delete options that are not relevant.
🧪 How Has This Been Tested?
Deployed with NPM and tested.
Checklist:
Expected Results:
Be able to change the language between English (default) and Norwegian by using a switcher in the header.
This also lays the groundwork for adding more languages in the future by just creating a new translation file and adding it to the translation service.
Actual Results:
Worked as expected.
Checklist: