Skip to content

feat: add support for i18n#10

Merged
marcos-cereijo-pexip merged 5 commits intomasterfrom
6-add-support-for-i18n
Aug 6, 2025
Merged

feat: add support for i18n#10
marcos-cereijo-pexip merged 5 commits intomasterfrom
6-add-support-for-i18n

Conversation

@marcos-cereijo-pexip
Copy link
Copy Markdown
Collaborator

Added support for i18n and english and dutch. It requires plugin-api 21.1.2.

@marcos-cereijo-pexip marcos-cereijo-pexip linked an issue Aug 4, 2025 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements internationalization (i18n) support for the message overlay plugin, adding English and Dutch language support and updating the plugin API dependency to version 21.1.2.

  • Added i18next library integration with HTTP backend for dynamic language loading
  • Replaced all hardcoded strings with internationalized versions using translation keys
  • Added language change event handler to update UI when language is switched

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vite.config.ts Removed mkcert plugin and simplified configuration
src/index.ts Added i18n import and language change event handler
src/i18n.ts New i18n configuration with HTTP backend
src/forms/createSelectRoomForm.ts Replaced hardcoded strings with i18n translations
src/forms/createInputMessageForm.ts Replaced hardcoded strings with i18n translations
public/locales/nl/translation.json Added Dutch translations
public/locales/en/translation.json Added English translations
package.json Updated dependencies including plugin-api and i18n libraries

Comment thread src/i18n.ts Outdated
Comment thread src/forms/createSelectRoomForm.ts Outdated
Comment thread src/forms/createInputMessageForm.ts Outdated
@timwilking
Copy link
Copy Markdown
Collaborator

In webapp3 we have script which generates the core translation file for englisch. Could it make sense to have something here ase well ?

yarn workspaces foreach --all run extract-translations

Comment thread src/i18n.ts Outdated
@marcos-cereijo-pexip marcos-cereijo-pexip merged commit d64ffe0 into master Aug 6, 2025
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.

Add support for i18n

3 participants