-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
13 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
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,21 @@ | ||
import {defineLocaleResourceBundle} from 'sanity' | ||
|
||
/** | ||
* The locale namespace for the document internationalization plugin. | ||
* | ||
* @public | ||
*/ | ||
export const documenti18nLocaleNamespace = | ||
'document-internationalization' as const | ||
|
||
/** | ||
* The default locale bundle for the document internationalization plugin, which is US English. | ||
* | ||
* @internal | ||
*/ | ||
export const documentInternationalizationUsEnglishLocaleBundle = | ||
defineLocaleResourceBundle({ | ||
locale: 'en-US', | ||
namespace: documenti18nLocaleNamespace, | ||
resources: () => import('./resources'), | ||
}) |
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,5 @@ | ||
export default { | ||
'action.duplicate.label': 'Duplicate with translations', | ||
'action.duplicate.disabled.missing-metadata': | ||
'The document cannot be duplicated because the metadata document is missing', | ||
} |
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