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

Default notification translation #83

Open
T1mey opened this issue Dec 20, 2024 · 0 comments
Open

Default notification translation #83

T1mey opened this issue Dec 20, 2024 · 0 comments

Comments

@T1mey
Copy link

T1mey commented Dec 20, 2024

Hello,

how do I translate the title and the description of the default notification.
So that SAP Workzone (Notifications) can decide in which language it should be shown (IMHO --> the language in which the user who received the notification is logged in --- and as fallback a fallback language (en?) ).

Do I need to pass the whole object to the alert function in this way?

 alert.notify({
                recipients: rec,
                Properties: [
                    {
                      Key: 'title',
                      IsSensitive: false,
                      Language: 'en',
                      Value: "Title EN",
                      Type: 'String'
                    },
                    {
                      Key: 'title',
                      IsSensitive: false,
                      Language: 'de',
                      Value: notBundle.at("title", "de"),
                      Type: 'String'
                    }
                    ...
                ],
            });

How do I set a fallback then?

@T1mey T1mey changed the title Default notification Default notification translation Dec 20, 2024
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

No branches or pull requests

1 participant