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
This commit is contained in:
Lim Chee Aun 2024-10-14 19:56:28 +08:00
parent c6fee139b5
commit 30486ed389
2 changed files with 4 additions and 4 deletions

4
src/locales/en.po generated
View file

@ -3549,10 +3549,10 @@ msgstr ""
msgid "NOTE: Push notifications only work for <0>one account</0>."
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

View file

@ -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 }) {
</>
) : (
<>
<Trans context="noun">Post</Trans>{' '}
<Trans id="post.title">Post</Trans>{' '}
<button
type="button"
class="ancestors-indicator light small"