Skip to content

added i18nI type#352

Merged
SteRiccio merged 3 commits intomasterfrom
feat/i18n-type
Apr 13, 2026
Merged

added i18nI type#352
SteRiccio merged 3 commits intomasterfrom
feat/i18n-type

Conversation

@SteRiccio
Copy link
Copy Markdown
Member

No description provided.

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 introduces a shared i18n translator type in src/common and uses it to type the replaceBodyTemplateVariables helper, then re-exports the new type from the package entrypoint.

Changes:

  • Add I18nI interface (with t(key: string): string) under src/common.
  • Update message template variable replacement to accept i18n: I18nI instead of an inline structural type.
  • Re-export I18nI from src/common/index.ts and src/index.ts.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/message/messages.ts Switches replaceBodyTemplateVariables to use the shared I18nI type.
src/index.ts Re-exports I18nI from the public package entrypoint.
src/common/index.ts Adds a barrel export for I18nI.
src/common/i18nI.ts Introduces the new i18n translator interface.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

@SteRiccio SteRiccio merged commit cfe5966 into master Apr 13, 2026
6 checks passed
@SteRiccio SteRiccio deleted the feat/i18n-type branch April 13, 2026 10:08
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.

2 participants