Skip to content
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

[ICS Reply] Internationalization #953

Closed
Arsnael opened this issue Mar 4, 2024 · 3 comments · Fixed by #970
Closed

[ICS Reply] Internationalization #953

Arsnael opened this issue Mar 4, 2024 · 3 comments · Fixed by #970
Assignees

Comments

@Arsnael
Copy link
Member

Arsnael commented Mar 4, 2024

Refactor the dummy hardcoded templates for CalendarEvent/accept /reject /maybe automated replies and allow having different language supported.

For now only two languages should be supported French (fr) and English(en)

3 templates shall be provided per language (so here 3 x 2 = 6 templates)

Put the default templates per language under a default folder

The folder location should be configurable in TMail to be able to allow usage of customized templates.

The language can be passed into the JMAP call like this:

{
	"using": ["urn:ietf:params:jmap:core", "com:linagora:params:calendar:event"],
	"methodCalls": [
        [ "CalendarEvent/accept", {
            "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
            "blobIds": ["0f9f65ab-dc7b-4146-850f-6e4881093965"],
            "language":"fr"
        }, "c1"]
	]
}

The default language should be english if missing.

DoD: Integration tests

@vttranlina
Copy link
Member

Note: The template file can be eml
Example: https://github.com/linagora/tmail-backend/blob/d0bac4adfa40884c702e5bef5b1cf706b0f55bd8/tmail-backend/mailbox/plugin/welcome-listener/src/test/resources/file.eml

@Arsnael
Copy link
Member Author

Arsnael commented Mar 11, 2024

Should be eml yes :)

Thanks for adding this missing declaration

@vttranlina
Copy link
Member

pr: #970

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 a pull request may close this issue.

2 participants