This repository was archived by the owner on Feb 3, 2026. It is now read-only.
Localization using Paraglide.js#34
Open
MohammedEAbdelAziz wants to merge 1 commit intomurdercode:mainfrom
Open
Localization using Paraglide.js#34MohammedEAbdelAziz wants to merge 1 commit intomurdercode:mainfrom
MohammedEAbdelAziz wants to merge 1 commit intomurdercode:mainfrom
Conversation
- Added localization using paraglide.js, languages are English and Italian (AI translation).
- Added language switcher in settings with relevant CSS file (definitely needs to be adjusted).
explanation:
- Static content is translated on page load.
- Dynamic content is handled by the companion DynamicTextUpdater.
- User preferences are persisted across sessions.
- Messages are saved in {locale}.json and accessed using m['parent.child']() function.
- There is a localization manager (utils/localization.js) which ultimately handles the following:
- Locale switching
- Text updates during runtime (after switching language)
- Updates the HTML `lang` tag
- There is also a dynamic text updater (utils/dynamic-text-updater.js) that updates text content when:
- Timer state changes
- DOM elements are added dynamically
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
feat:
notes:
explanation:
Static content is translated on page load.
Dynamic content is handled by the companion DynamicTextUpdater.
User preferences are persisted across sessions.
Messages are saved in {locale}.json and accessed using m['parent.child']() function.
There is a localization manager (utils/localization.js) which ultimately handles the following:
langtagThere is also a dynamic text updater (utils/dynamic-text-updater.js) that updates text content when: