A local-first personal finance app
[AI] Use translation contexts for news Post badge and update notes link (#9080)
Piyush Mehta2e68845ede21
diff --git a/packages/desktop-client/src/components/UpdateNotification.tsx b/packages/desktop-client/src/components/UpdateNotification.tsxindex 03e3ebf842..b73bd71da1 100644--- a/packages/desktop-client/src/components/UpdateNotification.tsx+++ b/packages/desktop-client/src/components/UpdateNotification.tsx@@ -74,7 +74,7 @@ export function UpdateNotification() {)}>- <Trans>notes</Trans>+ <Trans context="release notes">notes</Trans></Link>)<Buttondiff --git a/packages/desktop-client/src/components/news/NewsEntryCard.tsx b/packages/desktop-client/src/components/news/NewsEntryCard.tsxindex d530a91a41..80be8609a7 100644--- a/packages/desktop-client/src/components/news/NewsEntryCard.tsx+++ b/packages/desktop-client/src/components/news/NewsEntryCard.tsx@@ -66,7 +66,11 @@ export function NewsEntryCard({ entry, isUnread }: NewsEntryCardProps) {: theme.pillBackgroundSelected,}}>- {isRelease ? t('Release') : t('Post')}+ {isRelease ? (+ <Trans>Release</Trans>+ ) : (+ <Trans context="news">Post</Trans>+ )}</Text><Text style={{ fontWeight: 600, fontSize: 16, flex: 1 }}>{entry.title}diff --git a/upcoming-release-notes/i18n-context-post-notes.md b/upcoming-release-notes/i18n-context-post-notes.mdnew file mode 100644index 0000000000..9d19661bb7--- /dev/null+++ b/upcoming-release-notes/i18n-context-post-notes.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [piyush97]+---++Allow translators to translate the news "Post" badge and the update "notes" link separately from the rule stage and notes field