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

Update copyright in email templates according to custom text preferences #201

Merged

Conversation

UdeshAthukorala
Copy link
Contributor

Proposed changes in this pull request

Recently we have implement an API for the support to customize & localize the text content in end-user facing UIs.
Copyright text can also customize using this new custom text management API and so we need to Update copyright in email templates according to custom text preferences.

Following is a sample custom text prefernce payload.

{
    "type": "ORG",
    "name": "brionmario",
    "locale": "en-US",
    "screen": "common",
    "preference": {
        "text": {
            "copyright": "© {{currentYear}} WSO2 LLC.",
            "site.title": "Asgardeo by WSO2"
        }
    }
}

When applying the copyright text we need to update the current year accordingly.

  • ex: © {{currentYear}} WSO2 LLC --> © 2023 WSO2 LLC

Related PR

Wathsara
Wathsara previously approved these changes Oct 13, 2023
@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6505401155
Status: failure

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6505693877
Status: failure

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6506160524
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6506160524

@UdeshAthukorala UdeshAthukorala merged commit 10ed108 into wso2-extensions:master Oct 13, 2023
1 check passed
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.

4 participants