Skip to content

Commit

Permalink
refactor(macro): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Mar 8, 2024
1 parent 19eb04d commit 4904cde
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
5 changes: 2 additions & 3 deletions examples/create-react-app/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import React from "react"
import { getByText, render, act } from "@testing-library/react"
import { i18n } from "@lingui/core"
import { I18nProvider } from "@lingui/react"

import App from "./App"

i18n.load({
en: {
ZXBDaP: "Language switcher example:",
"zg/nOF": "Language switcher example: ",
},
cs: {
ZXBDaP: "Příklad přepínače jazyků:",
"zg/nOF": "Příklad přepínače jazyků: ",
},
})

Expand Down
26 changes: 13 additions & 13 deletions examples/create-react-app/src/locales/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#: src/App.tsx:31
#: src/App.tsx:43
msgid "{count, plural, zero {There are no books} one {There's one book} other {There are # books}}"
msgstr "{count, plural, zero {Nejsou žádné knihy} one {Je tu jedna kniha} other {Existuje # knih}}"

#: src/App.tsx:37
#: src/App.tsx:50
msgid "Date formatter example:"
msgstr "Příklad formátovače data:"

#: src/App.tsx:28
#: src/App.tsx:40
msgid "Decrement"
msgstr "Úbytek"

#: src/App.tsx:45
#: src/App.tsx:59
msgid "I have a balance of {0}"
msgstr "Mám zůstatek {0}"

#: src/App.tsx:25
#: src/App.tsx:37
msgid "Increment"
msgstr "Přírůstek"

#: src/App.tsx:14
msgid "Language switcher example:"
msgstr "Příklad přepínače jazyků:"
#: src/App.tsx:19
msgid "Language switcher example: "
msgstr "Příklad přepínače jazyků: "

#: src/App.tsx:43
#: src/App.tsx:56
msgid "Number formatter example:"
msgstr "Příklad formátovače čísel:"

#: src/App.tsx:22
msgid "Plurals example:"
msgstr "Příklad množného čísla:"
#: src/App.tsx:33
msgid "Plurals example: "
msgstr "Příklad množného čísla: "

#: src/App.tsx:39
#: src/App.tsx:53
msgid "Today is {0}"
msgstr "Dnes je {0}"
26 changes: 13 additions & 13 deletions examples/create-react-app/src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"

#: src/App.tsx:31
#: src/App.tsx:43
msgid "{count, plural, zero {There are no books} one {There's one book} other {There are # books}}"
msgstr "{count, plural, zero {There are no books} one {There's one book} other {There are # books}}"

#: src/App.tsx:37
#: src/App.tsx:50
msgid "Date formatter example:"
msgstr "Date formatter example:"

#: src/App.tsx:28
#: src/App.tsx:40
msgid "Decrement"
msgstr "Decrement"

#: src/App.tsx:45
#: src/App.tsx:59
msgid "I have a balance of {0}"
msgstr "I have a balance of {0}"

#: src/App.tsx:25
#: src/App.tsx:37
msgid "Increment"
msgstr "Increment"

#: src/App.tsx:14
msgid "Language switcher example:"
msgstr "Language switcher example:"
#: src/App.tsx:19
msgid "Language switcher example: "
msgstr "Language switcher example: "

#: src/App.tsx:43
#: src/App.tsx:56
msgid "Number formatter example:"
msgstr "Number formatter example:"

#: src/App.tsx:22
msgid "Plurals example:"
msgstr "Plurals example:"
#: src/App.tsx:33
msgid "Plurals example: "
msgstr "Plurals example: "

#: src/App.tsx:39
#: src/App.tsx:53
msgid "Today is {0}"
msgstr "Today is {0}"

0 comments on commit 4904cde

Please sign in to comment.