From 30486ed3890ac23751a175ac0c6ca8a35dc8104a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 14 Oct 2024 19:56:28 +0800 Subject: [PATCH] Explicit ID to force separate keys `context` will make Lingui aware of different contexts and generate different IDs but it's not shown on Crowdin's side. Crowdin seems only care about msgid and ignores msgctxt, so it won't generate another unique ID for different contexts --- src/locales/en.po | 4 ++-- src/pages/status.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/locales/en.po b/src/locales/en.po index c483393f..a2ce4410 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -3549,10 +3549,10 @@ msgstr "" msgid "NOTE: Push notifications only work for <0>one account." msgstr "" +#. js-lingui-explicit-id #: src/pages/status.jsx:567 #: src/pages/status.jsx:1100 -msgctxt "noun" -msgid "Post" +msgid "post.title" msgstr "Post" #: src/pages/status.jsx:791 diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 3f51eafb..ec32646b 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -565,8 +565,8 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { heroDisplayName && heroContentText ? `${heroDisplayName}: "${heroContentText}"` : t({ + id: 'post.title', message: 'Post', - context: 'noun', }), '/:instance?/s/:id', ); @@ -1097,7 +1097,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { ) : ( <> - Post{' '} + Post{' '}