-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support like 'enAU' 'en_AU' locales in IntlMessageFormat
- Loading branch information
Showing
4 changed files
with
120 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"Error": { | ||
"description": "<p>We've unfortunately encountered an error.</p><p>You can try to <retry>reload the page</retry> you were visiting.</p>", | ||
"title": "Something went wrong!" | ||
}, | ||
"IndexPage": { | ||
"description": "This is a basic example that demonstrates the usage of <code>next-intl</code> with the Next.js App Router. Try changing the locale in the top right corner and see how the content changes.", | ||
"title": "next-intl example" | ||
}, | ||
"LocaleLayout": { | ||
"title": "next-intl example" | ||
}, | ||
"LocaleSwitcher": { | ||
"label": "Change language", | ||
"locale": "{locale, select, de {🇩🇪 Deutsch} en {🇺🇸 English} other {Unknown}}" | ||
}, | ||
"Manifest": { | ||
"name": "next-intl example" | ||
}, | ||
"Navigation": { | ||
"home": "Home", | ||
"pathnames": "Pathnames" | ||
}, | ||
"NotFoundPage": { | ||
"description": "Please double-check the browser address bar or use the navigation to go to a known page.", | ||
"title": "Page not found" | ||
}, | ||
"PageLayout": { | ||
"links": { | ||
"docs": { | ||
"description": "Learn more about next-intl in the official docs.", | ||
"href": "https://next-intl-docs.vercel.app/", | ||
"title": "Docs" | ||
}, | ||
"source": { | ||
"description": "Browse the source code of this example on GitHub.", | ||
"href": "https://github.com/amannn/next-intl/tree/main/examples/example-app-router", | ||
"title": "Source code" | ||
} | ||
} | ||
}, | ||
"PathnamesPage": { | ||
"description": "<p>The pathnames are internationalized too.</p><p>If you're using the default language English, you'll see <code>/en/pathnames</code> in the browser address bar on this page.</p><p>If you change the locale to German, the URL is localized accordingly (<code>/de/pfadnamen</code>).</p>", | ||
"title": "Pathnames" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"Error": { | ||
"description": "<p>We've unfortunately encountered an error.</p><p>You can try to <retry>reload the page</retry> you were visiting.</p>", | ||
"title": "Something went wrong!" | ||
}, | ||
"IndexPage": { | ||
"description": "This is a basic example that demonstrates the usage of <code>next-intl</code> with the Next.js App Router. Try changing the locale in the top right corner and see how the content changes.", | ||
"title": "next-intl example" | ||
}, | ||
"LocaleLayout": { | ||
"title": "next-intl example" | ||
}, | ||
"LocaleSwitcher": { | ||
"label": "Change language", | ||
"locale": "{locale, select, de {🇩🇪 Deutsch} en {🇺🇸 English} other {Unknown}}" | ||
}, | ||
"Manifest": { | ||
"name": "next-intl example" | ||
}, | ||
"Navigation": { | ||
"home": "Home", | ||
"pathnames": "Pathnames" | ||
}, | ||
"NotFoundPage": { | ||
"description": "Please double-check the browser address bar or use the navigation to go to a known page.", | ||
"title": "Page not found" | ||
}, | ||
"PageLayout": { | ||
"links": { | ||
"docs": { | ||
"description": "Learn more about next-intl in the official docs.", | ||
"href": "https://next-intl-docs.vercel.app/", | ||
"title": "Docs" | ||
}, | ||
"source": { | ||
"description": "Browse the source code of this example on GitHub.", | ||
"href": "https://github.com/amannn/next-intl/tree/main/examples/example-app-router", | ||
"title": "Source code" | ||
} | ||
} | ||
}, | ||
"PathnamesPage": { | ||
"description": "<p>The pathnames are internationalized too.</p><p>If you're using the default language English, you'll see <code>/en/pathnames</code> in the browser address bar on this page.</p><p>If you change the locale to German, the URL is localized accordingly (<code>/de/pfadnamen</code>).</p>", | ||
"title": "Pathnames" | ||
} | ||
} |
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
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