mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #817] [MERGED] fix(web-push): re-init i18n on each sw message #1435
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/817
Author: @nihalgonsalves
Created: 7/10/2023
Status: ✅ Merged
Merged: 7/11/2023
Merged by: @binwiederhier
Base:
main← Head:ng/fix-web-push-i18n📝 Commits (2)
c7f85e6fix(web-push): re-init i18n on each sw message86cc3b9chore(build): bump Dockerfile-build go version📊 Changes
4 files changed (+33 additions, -25 deletions)
View changed files
📝
Dockerfile-build(+1 -1)📝
web/public/sw.js(+12 -7)📝
web/src/app/i18n.js(+17 -16)📝
web/src/components/App.jsx(+3 -1)📄 Description
It looks like the context that Safari runs the service worker in does not have the global i18n initialisation. This changes the push handler to get a new i18n TFunction when handling each message.
Before:
After:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.