-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update codebase for new i18n support
- Loading branch information
Sam Richard
committed
Jan 17, 2024
1 parent
a0ade9e
commit 08eb702
Showing
25 changed files
with
1,119 additions
and
1,000 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,25 @@ | ||
export const LANGUAGES = [ | ||
{ id: 'en', title: 'English' }, | ||
{ id: 'es', title: 'Spanish' }, | ||
]; | ||
|
||
export const SINGLETONS = [ | ||
{ type: 'home', title: 'Home' }, | ||
{ type: 'news', title: 'News' }, | ||
{ type: 'stories', title: 'Stories' }, | ||
{ type: 'newsletter', title: 'Newsletter' }, | ||
{ type: 'pwas', title: 'Powerful PWAs' }, | ||
{ type: 'microcopy', title: 'Microcopy' }, | ||
{ type: 'nav', title: 'Navigation' }, | ||
{ type: 'cookies', title: 'Cookie Disclaimer' }, | ||
{ type: 'app-support', title: 'App Support' }, | ||
]; | ||
|
||
export const i18nSCHEMAS = [ | ||
'post', | ||
'story', | ||
'documentation', | ||
'tag', | ||
'landing', | ||
...SINGLETONS.map((s) => s.type), | ||
]; |
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
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
Oops, something went wrong.