@sanity/locale-ca-es 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/_chunks-cjs/canvas.cjs +58 -0
- package/dist/_chunks-cjs/canvas.cjs.map +1 -0
- package/dist/_chunks-cjs/comments.cjs +175 -0
- package/dist/_chunks-cjs/comments.cjs.map +1 -0
- package/dist/_chunks-cjs/copy-paste.cjs +53 -0
- package/dist/_chunks-cjs/copy-paste.cjs.map +1 -0
- package/dist/_chunks-cjs/create.cjs +50 -0
- package/dist/_chunks-cjs/create.cjs.map +1 -0
- package/dist/_chunks-cjs/structure.cjs +490 -0
- package/dist/_chunks-cjs/structure.cjs.map +1 -0
- package/dist/_chunks-cjs/studio.cjs +1705 -0
- package/dist/_chunks-cjs/studio.cjs.map +1 -0
- package/dist/_chunks-cjs/tasks.cjs +155 -0
- package/dist/_chunks-cjs/tasks.cjs.map +1 -0
- package/dist/_chunks-cjs/validation.cjs +93 -0
- package/dist/_chunks-cjs/validation.cjs.map +1 -0
- package/dist/_chunks-cjs/vision.cjs +76 -0
- package/dist/_chunks-cjs/vision.cjs.map +1 -0
- package/dist/_chunks-es/canvas.js +60 -0
- package/dist/_chunks-es/canvas.js.map +1 -0
- package/dist/_chunks-es/comments.js +177 -0
- package/dist/_chunks-es/comments.js.map +1 -0
- package/dist/_chunks-es/copy-paste.js +55 -0
- package/dist/_chunks-es/copy-paste.js.map +1 -0
- package/dist/_chunks-es/create.js +52 -0
- package/dist/_chunks-es/create.js.map +1 -0
- package/dist/_chunks-es/structure.js +492 -0
- package/dist/_chunks-es/structure.js.map +1 -0
- package/dist/_chunks-es/studio.js +1707 -0
- package/dist/_chunks-es/studio.js.map +1 -0
- package/dist/_chunks-es/tasks.js +157 -0
- package/dist/_chunks-es/tasks.js.map +1 -0
- package/dist/_chunks-es/validation.js +95 -0
- package/dist/_chunks-es/validation.js.map +1 -0
- package/dist/_chunks-es/vision.js +78 -0
- package/dist/_chunks-es/vision.js.map +1 -0
- package/dist/index.cjs +75 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/src/canvas.ts +67 -0
- package/src/comments.ts +197 -0
- package/src/copy-paste.ts +66 -0
- package/src/create.ts +40 -0
- package/src/index.ts +72 -0
- package/src/structure.ts +582 -0
- package/src/studio.ts +1941 -0
- package/src/tasks.ts +172 -0
- package/src/validation.ts +99 -0
- package/src/vision.ts +83 -0
package/src/comments.ts
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import {removeUndefinedLocaleResources} from 'sanity'
|
|
2
|
+
|
|
3
|
+
export default removeUndefinedLocaleResources({
|
|
4
|
+
/** The close comments button text */
|
|
5
|
+
'close-pane-button-text': 'Tanca els comentaris',
|
|
6
|
+
|
|
7
|
+
/** The aria label for the close comments button */
|
|
8
|
+
'close-pane-button-text-aria-label': 'Tanca els comentaris',
|
|
9
|
+
|
|
10
|
+
/** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments */
|
|
11
|
+
'compose.add-comment-input-placeholder': 'Afegeix un comentari a <strong>{{field}}</strong>',
|
|
12
|
+
/** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments and the mode is upsell */
|
|
13
|
+
'compose.add-comment-input-placeholder-upsell': 'Actualitza per afegir un comentari',
|
|
14
|
+
/** When composing a comment, the placeholder text shown when the input is empty */
|
|
15
|
+
'compose.create-comment-placeholder': 'Crea un nou comentari',
|
|
16
|
+
/** When composing a comment, the aria label for the button to mention a user */
|
|
17
|
+
'compose.mention-user-aria-label': 'Menciona un usuari',
|
|
18
|
+
/** When composing a comment, the tooltip text for the button to mention a user */
|
|
19
|
+
'compose.mention-user-tooltip': 'Menciona un usuari',
|
|
20
|
+
/** When composing a reply, the placeholder text shown when the input is empty */
|
|
21
|
+
'compose.reply-placeholder': 'Respon',
|
|
22
|
+
/** When composing a reply, the placeholder text shown when the input is empty and the mode is upsell */
|
|
23
|
+
'compose.reply-placeholder-upsell': 'Actualitza per respondre',
|
|
24
|
+
/** When composing a comment, the aria label for the button to send a comment */
|
|
25
|
+
'compose.send-comment-aria-label': 'Envia el comentari',
|
|
26
|
+
/** When composing a comment, the tooltip text for the button to send a comment */
|
|
27
|
+
'compose.send-comment-tooltip': 'Envia el comentari',
|
|
28
|
+
|
|
29
|
+
/** The inspector text when error copying link */
|
|
30
|
+
'copy-link-error-message': "No s'ha pogut copiar l'enllaç al porta-retalls",
|
|
31
|
+
|
|
32
|
+
/** The delete dialog body for a comment */
|
|
33
|
+
'delete-comment.body': 'Un cop eliminat, un comentari no es pot recuperar.',
|
|
34
|
+
/** The delete dialog confirm button text for a comment */
|
|
35
|
+
'delete-comment.confirm': 'Elimina el comentari',
|
|
36
|
+
/** The delete dialog title for a comment */
|
|
37
|
+
'delete-comment.title': 'Vols eliminar aquest comentari?',
|
|
38
|
+
|
|
39
|
+
/** The delete dialog error */
|
|
40
|
+
'delete-dialog.error':
|
|
41
|
+
"S'ha produït un error en eliminar el comentari. Si us plau, intenta-ho de nou.",
|
|
42
|
+
|
|
43
|
+
/** The delete dialog body for a thread */
|
|
44
|
+
'delete-thread.body':
|
|
45
|
+
'Aquest comentari i les seves respostes seran eliminats, i un cop eliminats no es poden recuperar.',
|
|
46
|
+
/** The delete dialog conform button text for a thread */
|
|
47
|
+
'delete-thread.confirm': 'Elimina el fil',
|
|
48
|
+
/** The delete dialog title for a thread */
|
|
49
|
+
'delete-thread.title': 'Vols eliminar aquest fil de comentaris?',
|
|
50
|
+
|
|
51
|
+
/** The button text for confirming discard */
|
|
52
|
+
'discard.button-confirm': 'Descarta',
|
|
53
|
+
/** The header for discard comment dialog */
|
|
54
|
+
'discard.header': 'Vols descartar el comentari?',
|
|
55
|
+
/** The text for discard comment dialog */
|
|
56
|
+
'discard.text': 'Vols descartar el comentari?',
|
|
57
|
+
|
|
58
|
+
/** Sharing feedback on the comments feature: The link title */
|
|
59
|
+
'feature-feedback.link': 'Comparteix la teva opinió',
|
|
60
|
+
/** Sharing feedback on the comments feature: The form title */
|
|
61
|
+
'feature-feedback.title': 'Ajuda a millorar ',
|
|
62
|
+
|
|
63
|
+
/** The name of the comments feature, for use in header. Capitalized, eg "Comments". */
|
|
64
|
+
'feature-name': 'Comentaris',
|
|
65
|
+
|
|
66
|
+
/** Aria label for button above fields to add a comment, when the field currently do not have any comments */
|
|
67
|
+
'field-button.aria-label-add': 'Afegeix un comentari',
|
|
68
|
+
/** Aria label for button above fields that opens the comments for this field, when there are existing comments */
|
|
69
|
+
'field-button.aria-label-open': 'Obre els comentaris',
|
|
70
|
+
/** Text shown in popover when hovering the button above fields that opens the comments panel, when there is a single comment present */
|
|
71
|
+
'field-button.content_one': 'Veure comentari',
|
|
72
|
+
/** Text shown in popover when hovering the button above fields that opens the comments panel, when there are more than one comment present */
|
|
73
|
+
'field-button.content_other': 'Veure comentaris',
|
|
74
|
+
/** Text shown in popover when hovering the button above fields to add a comment, when the field currently do not have any comments */
|
|
75
|
+
'field-button.title': 'Afegeix un comentari',
|
|
76
|
+
|
|
77
|
+
/* The text shown in the inline comment button when the button is disabled due to overlap */
|
|
78
|
+
'inline-add-comment-button.disabled-overlap-title': 'Els comentaris no poden solapar-se',
|
|
79
|
+
/** The text shown in the inline comment button */
|
|
80
|
+
'inline-add-comment-button.title': 'Afegeix un comentari',
|
|
81
|
+
|
|
82
|
+
/** Aria label for the breadcrumb button showing the field path. `{{field}}` is the last (most specific) field. */
|
|
83
|
+
'list-item.breadcrumb-button-go-to-field-aria-label': 'Vés al camp {{field}}',
|
|
84
|
+
/** The button tooltip content for the add reaction button */
|
|
85
|
+
'list-item.context-menu-add-reaction': 'Afegeix una reacció',
|
|
86
|
+
/** The button tooltip aria label for adding a reaction */
|
|
87
|
+
'list-item.context-menu-add-reaction-aria-label': 'Afegeix una reacció',
|
|
88
|
+
/** The button tooltip content for the add reaction button and mode is upsell */
|
|
89
|
+
'list-item.context-menu-add-reaction-upsell': 'Actualitza per afegir una reacció',
|
|
90
|
+
/** The action menu item for copying a comment link */
|
|
91
|
+
'list-item.copy-link': "Copia l'enllaç al comentari",
|
|
92
|
+
/** The action menu item for deleting a comment */
|
|
93
|
+
'list-item.delete-comment': 'Esborra el comentari',
|
|
94
|
+
/** The action menu item for editing a comment */
|
|
95
|
+
'list-item.edit-comment': 'Edita el comentari',
|
|
96
|
+
/** The action menu item for editing a comment and the mode is upsell */
|
|
97
|
+
'list-item.edit-comment-upsell': 'Actualitza per editar el comentari',
|
|
98
|
+
/** Aria label for the button that takes you to the field, which wraps a thread/comment */
|
|
99
|
+
'list-item.go-to-field-button.aria-label': 'Vés al camp',
|
|
100
|
+
/**
|
|
101
|
+
* The text shown below the author and timestamp of a comment including a link back to the context in which the comment was made.
|
|
102
|
+
* Consists of a document title wrapped in a link, and a word or phrase to indicate that the link refers to a location:
|
|
103
|
+
* eg "on Home", "on Coffee Machine | Products", "on Pricing – Sanity"
|
|
104
|
+
*/
|
|
105
|
+
'list-item.layout-context': 'a <IntentLink>{{title}}</IntentLink>',
|
|
106
|
+
/** The marker to indicate that a comment has been edited in brackets */
|
|
107
|
+
'list-item.layout-edited': 'editat',
|
|
108
|
+
/** The error text when sending a comment has failed */
|
|
109
|
+
'list-item.layout-failed-sent': "No s'ha pogut enviar.",
|
|
110
|
+
/** The loading message when posting a comment is in progress */
|
|
111
|
+
'list-item.layout-posting': 'Publicant...',
|
|
112
|
+
/** The text for retrying posting a comment */
|
|
113
|
+
'list-item.layout-retry': 'Torna-ho a provar',
|
|
114
|
+
/** The text shown when the value a comment references has been deleted */
|
|
115
|
+
'list-item.missing-referenced-value-tooltip-content': 'El text comentat ha estat esborrat',
|
|
116
|
+
/** The aria label for the comments menu button to open the actions menu */
|
|
117
|
+
'list-item.open-menu-aria-label': "Obre el menú d'accions del comentari",
|
|
118
|
+
/** The button text to re-open a resolved comment */
|
|
119
|
+
'list-item.re-open-resolved': 'Reobre',
|
|
120
|
+
/** The button aria label to re-open a comment that is resolved */
|
|
121
|
+
'list-item.re-open-resolved-aria-label': 'Reobre',
|
|
122
|
+
/** The button aria label to mark a comment as resolved */
|
|
123
|
+
'list-item.resolved-tooltip-aria-label': 'Marca el comentari com a resolt',
|
|
124
|
+
/** The button text to mark a comment as resolved */
|
|
125
|
+
'list-item.resolved-tooltip-content': 'Marca com a resolt',
|
|
126
|
+
|
|
127
|
+
/** The empty state text for open comments */
|
|
128
|
+
'list-status.empty-state-open-text':
|
|
129
|
+
'Els comentaris oberts en aquest document es mostraran aquí.',
|
|
130
|
+
/** The empty state title for open comments */
|
|
131
|
+
'list-status.empty-state-open-title': 'Encara no hi ha comentaris oberts',
|
|
132
|
+
/** The empty state text for resolved comments */
|
|
133
|
+
'list-status.empty-state-resolved-text':
|
|
134
|
+
'Els comentaris resolts en aquest document es mostraran aquí.',
|
|
135
|
+
/** The empty state title for resolved comments */
|
|
136
|
+
'list-status.empty-state-resolved-title': 'Encara no hi ha comentaris resolts',
|
|
137
|
+
/** The list status message for error */
|
|
138
|
+
'list-status.error': 'Alguna cosa ha anat malament',
|
|
139
|
+
/** The list status message for loading status */
|
|
140
|
+
'list-status.loading': 'Carregant comentaris',
|
|
141
|
+
|
|
142
|
+
/** Text shown when no users can be found to mention */
|
|
143
|
+
'mentions.no-users-found': "No s'han trobat usuaris",
|
|
144
|
+
/** Label/badge shown for users that are not authorized to see the document, and thus cannot be mentioned */
|
|
145
|
+
'mentions.unauthorized-user': 'No autoritzat',
|
|
146
|
+
/** Aria label for the command list for users to mention */
|
|
147
|
+
'mentions.user-list-aria-label': "Llista d'usuaris per mencionar",
|
|
148
|
+
|
|
149
|
+
/** The comments onboarding popover text */
|
|
150
|
+
'onboarding.body':
|
|
151
|
+
"Pots afegir comentaris a qualsevol camp d'un document. Apareixeran aquí, agrupats per camp.",
|
|
152
|
+
/** The comments onboarding dismiss text */
|
|
153
|
+
'onboarding.dismiss': 'Entès',
|
|
154
|
+
/** The comments onboarding popover header text */
|
|
155
|
+
'onboarding.header': 'Els camps del document ara tenen comentaris',
|
|
156
|
+
|
|
157
|
+
/** Tooltip for the button to add a reaction to a comment */
|
|
158
|
+
'reactions.add-reaction-tooltip': 'Afegeix reacció',
|
|
159
|
+
/** Aria label for the individual reactions you can choose from when reacting to a comment */
|
|
160
|
+
'reactions.react-with-aria-label': 'Reacciona amb {{reactionName}}',
|
|
161
|
+
/** When a users' name cannot be resolved, fall back to this name */
|
|
162
|
+
'reactions.user-list.unknown-user-fallback-name': 'Usuari desconegut',
|
|
163
|
+
/**
|
|
164
|
+
* When showing list of users who have reacted, replaces your own name with "you", eg
|
|
165
|
+
* "Donna, you, James, and Tyler reacted with 👍". A different key (`_leading` suffix)
|
|
166
|
+
* is used when you are the first to react, eg "You, Donna and Tyler reacted with 👍".
|
|
167
|
+
* Use `{{name}}` if you want to instead use the current users' actual name.
|
|
168
|
+
*/
|
|
169
|
+
'reactions.user-list.you': 'tu',
|
|
170
|
+
/**
|
|
171
|
+
* When showing list of users who have reacted, replaces your own name with "You", eg
|
|
172
|
+
* "You, Donna, James, and Tyler reacted with 👍". A different key (`_leading` suffix)
|
|
173
|
+
* is used when you are not the first to react, eg "Donna, you, James and Tyler reacted with 👍".
|
|
174
|
+
* Use `{{name}}` if you want to instead use the current users' actual name.
|
|
175
|
+
*/
|
|
176
|
+
'reactions.user-list.you_leading': 'Tu',
|
|
177
|
+
/**
|
|
178
|
+
* The text shown for the tooltip that appears when hovering over the reaction count, eg
|
|
179
|
+
* "Donna, James, and Tyler Reacted with 👍". Three components are available for use:
|
|
180
|
+
* - `<UserList/>` - the list of names of users who have reacted, using the locales list format
|
|
181
|
+
* - `<Text>` - should be wrapped around the text describing the action ("reacted with")
|
|
182
|
+
* - `<ReactionName/>` - the name of the reaction emoji, eg ":heavy_plus_sign:"
|
|
183
|
+
*/
|
|
184
|
+
'reactions.users-reacted-with-reaction':
|
|
185
|
+
'<UserList/> <Text>han reaccionat amb</Text> <ReactionName/>',
|
|
186
|
+
|
|
187
|
+
/** Status filter: The short title describing filtering on open (non-resolved) comments */
|
|
188
|
+
'status-filter.status-open': 'Oberts',
|
|
189
|
+
/** Status filter: The full text for describing filtering on open (non-resolved) comments */
|
|
190
|
+
'status-filter.status-open-full': 'Comentaris oberts',
|
|
191
|
+
/** Status filter: The short title describing filtering on resolved comments */
|
|
192
|
+
'status-filter.status-resolved': 'Resolts',
|
|
193
|
+
/** Status filter: The full text for describing filtering on resolved comments */
|
|
194
|
+
'status-filter.status-resolved-full': 'Comentaris resolts',
|
|
195
|
+
/** Status filter: The full text for describing filtering on resolved comments and is upsell mode */
|
|
196
|
+
'status-filter.status-resolved-full-upsell': 'Actualitza per veure els comentaris resolts',
|
|
197
|
+
})
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {removeUndefinedLocaleResources} from 'sanity'
|
|
2
|
+
|
|
3
|
+
export default removeUndefinedLocaleResources({
|
|
4
|
+
/** Text on the field action button to copy a document */
|
|
5
|
+
'copy-paste.field-action-copy-button.document.title': 'Copia el document',
|
|
6
|
+
/** Text on the field action button to copy a field */
|
|
7
|
+
'copy-paste.field-action-copy-button.field.title': 'Copia el camp',
|
|
8
|
+
/** Text on the field action button to paste a document */
|
|
9
|
+
'copy-paste.field-action-paste-button.document.title': 'Enganxa el document',
|
|
10
|
+
/** Text on the field action button to paste a field */
|
|
11
|
+
'copy-paste.field-action-paste-button.field.title': 'Enganxa el camp',
|
|
12
|
+
/** The error message that is shown when the clipboard is not supported */
|
|
13
|
+
'copy-paste.on-copy.validation.clipboard-not-supported.title':
|
|
14
|
+
'El teu navegador no admet aquesta acció',
|
|
15
|
+
/** The error message that is shown when there is no value to copy */
|
|
16
|
+
'copy-paste.on-copy.validation.no-value.title': 'Valor buit, res per copiar',
|
|
17
|
+
/** --- On copy --- */
|
|
18
|
+
/** The error message that is shown when schema types are incompatible */
|
|
19
|
+
'copy-paste.on-copy.validation.schema-type-incompatible.title':
|
|
20
|
+
"No s'ha pogut resoldre el tipus d'esquema per la ruta: {{path}}",
|
|
21
|
+
/** The validation message that is shown when array types are incompatible */
|
|
22
|
+
'copy-paste.on-paste.validation.array-type-incompatible.description':
|
|
23
|
+
'El valor del tipus "{{type}}" no està permès en aquest camp d\'array',
|
|
24
|
+
/** The validation message that is shown when array values are incompatible */
|
|
25
|
+
'copy-paste.on-paste.validation.array-value-incompatible.description':
|
|
26
|
+
'El valor del tipus "{{type}}" no està permès en aquest camp d\'array',
|
|
27
|
+
/** The validation message that is shown when the clipboard is empty */
|
|
28
|
+
'copy-paste.on-paste.validation.clipboard-empty.title': 'Res per enganxar',
|
|
29
|
+
/** The validation message that is shown when the clipboard item is invalid */
|
|
30
|
+
'copy-paste.on-paste.validation.clipboard-invalid.title': 'Element del porta-retalls invàlid',
|
|
31
|
+
/** The validation message that is shown when image files are incompatible */
|
|
32
|
+
'copy-paste.on-paste.validation.image-file-incompatible.description':
|
|
33
|
+
'Un "{{sourceSchemaType}}" no està permès en un "{{targetSchemaType}}"',
|
|
34
|
+
/** The error message that is shown when the MIME type is not accepted */
|
|
35
|
+
'copy-paste.on-paste.validation.mime-type-incompatible.description':
|
|
36
|
+
'El tipus MIME "{{mimeType}}" no està acceptat per aquest camp',
|
|
37
|
+
/** The error message that is shown when the MIME type validation fails */
|
|
38
|
+
'copy-paste.on-paste.validation.mime-type-validation-failed.description':
|
|
39
|
+
'La validació del tipus MIME ha fallat',
|
|
40
|
+
/** The warning message that is shown when not all values can be pasted */
|
|
41
|
+
'copy-paste.on-paste.validation.partial-warning.title': "No s'han pogut enganxar tots els valors",
|
|
42
|
+
/** The validation message that is shown when primitive types are incompatible */
|
|
43
|
+
'copy-paste.on-paste.validation.primitive-type-incompatible.description':
|
|
44
|
+
'El valor del tipus "{{type}}" no està permès en aquest camp',
|
|
45
|
+
/** --- On paste --- */
|
|
46
|
+
/** The validation message that is shown when pasting a value into a read-only target */
|
|
47
|
+
'copy-paste.on-paste.validation.read-only-target.description': 'El destí és de només lectura',
|
|
48
|
+
/** The validation message that is shown when reference is incompatible with filter */
|
|
49
|
+
'copy-paste.on-paste.validation.reference-filter-incompatible.description':
|
|
50
|
+
'La referència no està permesa en el camp de referència segons el filtre',
|
|
51
|
+
/** The validation message that is shown when reference types are incompatible */
|
|
52
|
+
'copy-paste.on-paste.validation.reference-type-incompatible.description':
|
|
53
|
+
'Les referències del tipus "{{sourceReferenceType}}" no estan permeses en el camp de referència que accepta tipus "{{targetReferenceTypes}}"',
|
|
54
|
+
/** The validation message that is shown when reference does not exist */
|
|
55
|
+
'copy-paste.on-paste.validation.reference-validation-failed.description':
|
|
56
|
+
'El document referenciat "{{ref}}" no existeix',
|
|
57
|
+
/** The validation message that is shown when the source and target schema types are incompatible */
|
|
58
|
+
'copy-paste.on-paste.validation.schema-type-incompatible.description':
|
|
59
|
+
"Els tipus d'esquema d'origen i destí no són compatibles",
|
|
60
|
+
/** The validation message that is shown when schema types are incompatible */
|
|
61
|
+
'copy-paste.on-paste.validation.schema-type-incompatible.title':
|
|
62
|
+
"No s'ha pogut resoldre el tipus d'esquema per la ruta: {{path}}",
|
|
63
|
+
/** The validation message that is shown when string values are incompatible */
|
|
64
|
+
'copy-paste.on-paste.validation.string-value-incompatible.description':
|
|
65
|
+
'El valor "{{value}}" no està permès en "{{allowedStrings}}"',
|
|
66
|
+
})
|
package/src/create.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {removeUndefinedLocaleResources} from 'sanity'
|
|
2
|
+
|
|
3
|
+
export default removeUndefinedLocaleResources({
|
|
4
|
+
/** Text in badge above header in Create Link info popover */
|
|
5
|
+
'create-link-info-popover.eyebrow-badge': undefined, // 'Early access'
|
|
6
|
+
/** Text above header in Create Link info popover */
|
|
7
|
+
'create-link-info-popover.eyebrow-title': undefined, // 'Sanity Create'
|
|
8
|
+
/** Header in Create Link info popover */
|
|
9
|
+
'create-link-info-popover.header': undefined, // 'Idea-first authoring'
|
|
10
|
+
/** Informational text in Create Link info popover */
|
|
11
|
+
'create-link-info-popover.text': undefined, // 'Write naturally in an AI-powered editor. Your content automatically maps to Studio fields as you type.'
|
|
12
|
+
|
|
13
|
+
/** Tooltip for Create Link button */
|
|
14
|
+
'create-link-info.tooltip': undefined, // 'Learn more'
|
|
15
|
+
|
|
16
|
+
/** Edit in Create button text */
|
|
17
|
+
'edit-in-create-button.text': undefined, // 'Edit with Sanity Create'
|
|
18
|
+
|
|
19
|
+
/** CTA in "Start writing in Create" dialog: Learn more */
|
|
20
|
+
'start-in-create-dialog.cta.learn-more': undefined, // 'Learn more.'
|
|
21
|
+
|
|
22
|
+
/** Text for the document pane banner informing users that the document is linked to Sanity Create */
|
|
23
|
+
'studio-create-link-banner.text': undefined, // 'This document is linked to Sanity Create'
|
|
24
|
+
|
|
25
|
+
/** Unlink document from Sanity Create button text */
|
|
26
|
+
'unlink-from-create-button.text': undefined, // 'Unlink'
|
|
27
|
+
|
|
28
|
+
/** Unlink from Create dialog: Cancel button text */
|
|
29
|
+
'unlink-from-create-dialog.cancel.text': undefined, // 'Cancel'
|
|
30
|
+
/** Unlink from Create dialog: Document title used if no other title can be determined */
|
|
31
|
+
'unlink-from-create-dialog.document.untitled.text': undefined, // 'Untitled'
|
|
32
|
+
/** Unlink from Create dialog – first informational paragraph */
|
|
33
|
+
'unlink-from-create-dialog.first-paragraph': undefined, // 'You’re unlinking “<strong>{{title}}</strong>” from Sanity Create so it can be edited here.'
|
|
34
|
+
/** Unlink from Create dialog header */
|
|
35
|
+
'unlink-from-create-dialog.header': undefined, // 'Switch editing to Studio?'
|
|
36
|
+
/** Unlink from Create dialog – second informational paragraph */
|
|
37
|
+
'unlink-from-create-dialog.second-paragraph': undefined, // 'You’ll keep your content in both places. Any new changes in Sanity Create will stop syncing to this Studio.'
|
|
38
|
+
/** Unlink from Create dialog: Unlink button text */
|
|
39
|
+
'unlink-from-create-dialog.unlink.text': undefined, // 'Unlink now'
|
|
40
|
+
})
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {defineLocale, definePlugin, type LocaleDefinition} from 'sanity'
|
|
2
|
+
|
|
3
|
+
const locale = defineLocale({
|
|
4
|
+
id: 'ca-ES',
|
|
5
|
+
title: 'Català',
|
|
6
|
+
bundles: [
|
|
7
|
+
{
|
|
8
|
+
namespace: 'canvas',
|
|
9
|
+
resources: () => import('./canvas'),
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
{
|
|
13
|
+
namespace: 'comments',
|
|
14
|
+
resources: () => import('./comments'),
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
namespace: 'copy-paste',
|
|
19
|
+
resources: () => import('./copy-paste'),
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
{
|
|
23
|
+
namespace: 'create',
|
|
24
|
+
resources: () => import('./create'),
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
{
|
|
28
|
+
namespace: 'structure',
|
|
29
|
+
resources: () => import('./structure'),
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
{
|
|
33
|
+
namespace: 'studio',
|
|
34
|
+
resources: () => import('./studio'),
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
{
|
|
38
|
+
namespace: 'tasks',
|
|
39
|
+
resources: () => import('./tasks'),
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
namespace: 'validation',
|
|
44
|
+
resources: () => import('./validation'),
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
namespace: 'vision',
|
|
49
|
+
resources: () => import('./vision'),
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
weekInfo: {
|
|
53
|
+
firstDay: 1,
|
|
54
|
+
minimalDays: 4,
|
|
55
|
+
weekend: [6, 7],
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Català / Catalan locale/translation plugin for Sanity Studio
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export const caESLocale = definePlugin<{
|
|
65
|
+
title?: string
|
|
66
|
+
weekInfo?: LocaleDefinition['weekInfo']
|
|
67
|
+
} | void>((config) => ({
|
|
68
|
+
name: '@sanity/locale-ca-es',
|
|
69
|
+
i18n: {
|
|
70
|
+
locales: [config ? {...locale, ...config} : locale],
|
|
71
|
+
},
|
|
72
|
+
}))
|