mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:37:30 +00:00
fix: custom mail texts (#2101)
* fix: custom mail texts * fix: custom mail texts * disable cache * enable cache again * disable cache again * comment
This commit is contained in:
6
.github/workflows/zitadel.yml
vendored
6
.github/workflows/zitadel.yml
vendored
@@ -72,7 +72,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./build/zitadel/Dockerfile
|
file: ./build/zitadel/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
cache-from: type=gha,scope=${{ github.workflow }}
|
# cache-from: type=gha,scope=${{ github.workflow }} (https://github.com/caos/zitadel/issues/2102)
|
||||||
cache-to: type=gha,scope=${{ github.workflow }},mode=max
|
cache-to: type=gha,scope=${{ github.workflow }},mode=max
|
||||||
outputs: type=local,dest=/tmp/zitadel
|
outputs: type=local,dest=/tmp/zitadel
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
@@ -124,7 +124,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./build/console/Dockerfile
|
file: ./build/console/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
cache-from: type=gha,scope=${{ github.workflow }}
|
# cache-from: type=gha,scope=${{ github.workflow }} (https://github.com/caos/zitadel/issues/2102)
|
||||||
cache-to: type=gha,scope=${{ github.workflow }},mode=max
|
cache-to: type=gha,scope=${{ github.workflow }},mode=max
|
||||||
outputs: type=local,dest=/tmp/zitadel-console
|
outputs: type=local,dest=/tmp/zitadel-console
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
@@ -194,7 +194,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./build/operator/Dockerfile
|
file: ./build/operator/Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
cache-from: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }}
|
# cache-from: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }} (https://github.com/caos/zitadel/issues/2102)
|
||||||
cache-to: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }},mode=max
|
cache-to: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }},mode=max
|
||||||
outputs: type=local,dest=/tmp/operator
|
outputs: type=local,dest=/tmp/operator
|
||||||
build-args: |
|
build-args: |
|
||||||
|
@@ -398,18 +398,18 @@ func (n *Notification) getTranslatorWithOrgTexts(orgID, textType string) (*i18n.
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
allCustomTexts, err := n.view.CustomTextsByAggregateIDAndTemplate(domain.IAMID, textType)
|
allCustomTexts, err := n.view.CustomTextsByAggregateIDAndTemplate(domain.IAMID, textType)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
return translator, nil
|
return translator, nil
|
||||||
}
|
}
|
||||||
customTexts, err := n.view.CustomTextsByAggregateIDAndTemplate(orgID, textType)
|
customTexts, err := n.view.CustomTextsByAggregateIDAndTemplate(orgID, textType)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
return translator, nil
|
return translator, nil
|
||||||
}
|
}
|
||||||
allCustomTexts = append(allCustomTexts, customTexts...)
|
allCustomTexts = append(allCustomTexts, customTexts...)
|
||||||
|
|
||||||
for _, text := range allCustomTexts {
|
for _, text := range allCustomTexts {
|
||||||
msg := i18n.Message{
|
msg := i18n.Message{
|
||||||
ID: text.Key,
|
ID: text.Template + "." + text.Key,
|
||||||
Text: text.Text,
|
Text: text.Text,
|
||||||
}
|
}
|
||||||
translator.AddMessages(language.Make(text.Language), msg)
|
translator.AddMessages(language.Make(text.Language), msg)
|
||||||
|
Reference in New Issue
Block a user