Skip to content

Commit

Permalink
chore: new test for Trans with React.Key
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Jul 9, 2024
1 parent 190c97b commit 8d3a70d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components/AboutText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export function AboutText() {
return (
<p>
<Trans>Hello, world</Trans>
<Trans key="test">Once again</Trans>
<br />
<Trans id="message.next-explanation">
Next.js is an open-source React front-end development web framework that
Expand Down
6 changes: 5 additions & 1 deletion src/locales/src/pages/index.page/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ msgid "Index Page Description"
msgstr "Index Page Description"

#. js-lingui-explicit-id
#: src/components/AboutText.tsx:8
#: src/components/AboutText.tsx:9
msgid "message.next-explanation"
msgstr "Next.js is an open-source React front-end development web framework that enables functionality such as server-side rendering and generating static websites for React based web applications. It is a production-ready framework that allows developers to quickly create static and dynamic JAMstack websites and is used widely by many large companies."

#: src/components/AboutText.tsx:7
msgid "Once again"
msgstr "Once again"

#: src/pages/index.page.tsx:67
#: src/pages/index.page.tsx:69
msgid "Plain text"
Expand Down
6 changes: 5 additions & 1 deletion src/locales/src/pages/index.page/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ msgid "Index Page Description"
msgstr "ES Index Page Description"

#. js-lingui-explicit-id
#: src/components/AboutText.tsx:8
#: src/components/AboutText.tsx:9
msgid "message.next-explanation"
msgstr "ES Next.js is an open-source React front-end development web framework that enables functionality such as server-side rendering and generating static websites for React based web applications. It is a production-ready framework that allows developers to quickly create static and dynamic JAMstack websites and is used widely by many large companies."

#: src/components/AboutText.tsx:7
msgid "Once again"
msgstr ""

#: src/pages/index.page.tsx:67
#: src/pages/index.page.tsx:69
msgid "Plain text"
Expand Down
6 changes: 5 additions & 1 deletion src/locales/src/pages/index.page/pseudo.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ msgid "Index Page Description"
msgstr ""

#. js-lingui-explicit-id
#: src/components/AboutText.tsx:8
#: src/components/AboutText.tsx:9
msgid "message.next-explanation"
msgstr ""

#: src/components/AboutText.tsx:7
msgid "Once again"
msgstr ""

#: src/pages/index.page.tsx:67
#: src/pages/index.page.tsx:69
msgid "Plain text"
Expand Down
6 changes: 5 additions & 1 deletion src/locales/src/pages/index.page/sr.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ msgid "Index Page Description"
msgstr ""

#. js-lingui-explicit-id
#: src/components/AboutText.tsx:8
#: src/components/AboutText.tsx:9
msgid "message.next-explanation"
msgstr ""

#: src/components/AboutText.tsx:7
msgid "Once again"
msgstr ""

#: src/pages/index.page.tsx:67
#: src/pages/index.page.tsx:69
msgid "Plain text"
Expand Down

0 comments on commit 8d3a70d

Please sign in to comment.