-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example usage of useTranslation inside generateMetadata (#1199)
* added second-page-title to locales/ca/common.json * added second-page-title to locales/es/common.json * added second-page-title to locales/en/common.json * added generateMetadata with usage of useTranslation
- Loading branch information
1 parent
7445cf2
commit 8cfe3ab
Showing
4 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"title": "Llibreria next-translate", | ||
"second-page": "Segona <0>pàgina</0>", | ||
"second-page-title": "Títol Segona Pàgina", | ||
"loading": "Carregant...", | ||
"layout-title": "Títol de la pàgina (del layout)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"title": "next-translate library", | ||
"second-page": "Second <0>page</0>", | ||
"second-page-title": "Second Page Title", | ||
"loading": "Loading...", | ||
"layout-title": "Layout title" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"title": "Librería next-translate", | ||
"second-page": "Segunda <0>página</0>", | ||
"second-page-title": "Título Segunda Página", | ||
"loading": "Cargando...", | ||
"layout-title": "Título de la página (del layout)" | ||
} |
9 changes: 9 additions & 0 deletions
9
examples/with-app-directory/src/app/[lang]/second-page/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters