@sanity/locale-hr-hr 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 +57 -0
- package/dist/_chunks/structure-LTQzG9KC.js +1 -0
- package/dist/_chunks/structure-LTQzG9KC.js.map +1 -0
- package/dist/_chunks/structure-bs-1ZHZg.cjs +1 -0
- package/dist/_chunks/structure-bs-1ZHZg.cjs.map +1 -0
- package/dist/_chunks/studio-ehc5UaK2.js +1 -0
- package/dist/_chunks/studio-ehc5UaK2.js.map +1 -0
- package/dist/_chunks/studio-qsS2zYvT.cjs +1 -0
- package/dist/_chunks/studio-qsS2zYvT.cjs.map +1 -0
- package/dist/_chunks/validation-0UwSW_dJ.cjs +1 -0
- package/dist/_chunks/validation-0UwSW_dJ.cjs.map +1 -0
- package/dist/_chunks/validation-xFi5HlJK.js +1 -0
- package/dist/_chunks/validation-xFi5HlJK.js.map +1 -0
- package/dist/_chunks/vision-dq3YwfSP.js +1 -0
- package/dist/_chunks/vision-dq3YwfSP.js.map +1 -0
- package/dist/_chunks/vision-p0uOTpaz.cjs +1 -0
- package/dist/_chunks/vision-p0uOTpaz.cjs.map +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/src/index.ts +47 -0
- package/src/structure.ts +407 -0
- package/src/studio.ts +1610 -0
- package/src/validation.ts +99 -0
- package/src/vision.ts +69 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {removeUndefinedLocaleResources} from 'sanity'
|
|
2
|
+
|
|
3
|
+
export default removeUndefinedLocaleResources({
|
|
4
|
+
/** Array must have exactly "$wantedLength" items, but has more/less */
|
|
5
|
+
'array.exact-length': 'Mora imati točno {{wantedLength}} stavki',
|
|
6
|
+
/** Portable Text array must have exactly "$wantedLength" blocks, but has more/less */
|
|
7
|
+
'array.exact-length_blocks': 'Mora imati točno {{wantedLength}} blokova',
|
|
8
|
+
/** Array item is a duplicate, but array wants only unique items */
|
|
9
|
+
'array.item-duplicate': 'Ne smije biti duplikat',
|
|
10
|
+
/** Array has more than the maximum of "$maxLength" items */
|
|
11
|
+
'array.maximum-length': 'Mora imati najviše {{maxLength}} stavki',
|
|
12
|
+
/** Portable Text array has more than the maximum of "$maxLength" items */
|
|
13
|
+
'array.maximum-length_blocks': 'Mora imati najviše {{maxLength}} blokova',
|
|
14
|
+
/** Array has less than the minimum of "$minLength" items */
|
|
15
|
+
'array.minimum-length': 'Mora imati najmanje {{minLength}} stavki',
|
|
16
|
+
/** Portable Text array has less than the minimum of "$minLength" blocks */
|
|
17
|
+
'array.minimum-length_blocks': 'Mora imati najmanje {{minLength}} blokova',
|
|
18
|
+
|
|
19
|
+
/** Date is not valid or not in the correct format (ISO-8601) */
|
|
20
|
+
'date.invalid-format': 'Mora biti valjan ISO-8601 formatiran datum',
|
|
21
|
+
/** Date is later than the given maximum date "$maxDate" */
|
|
22
|
+
'date.maximum': 'Mora biti prije {{maxDate}}',
|
|
23
|
+
/** Date is earlier than the given minimum date "$minDate" */
|
|
24
|
+
'date.minimum': 'Mora biti nakon {{minDate}}',
|
|
25
|
+
|
|
26
|
+
/** A value of incorrect type is found, eg found `number` instead of `string` */
|
|
27
|
+
'generic.incorrect-type': 'Očekivani tip "{{expectedType}}", dobio "{{actualType}}"',
|
|
28
|
+
/** Value is not one of the values specifically allowed */
|
|
29
|
+
'generic.not-allowed': 'Vrijednost se ne podudara s dozvoljenim vrijednostima',
|
|
30
|
+
/** Value "$givenValue" is not one of the values specifically allowed */
|
|
31
|
+
'generic.not-allowed_hint': 'Vrijednost "{{hint}}" se ne podudara s dozvoljenim vrijednostima',
|
|
32
|
+
/** A value is expected, but none is provided */
|
|
33
|
+
'generic.required': 'Obavezno',
|
|
34
|
+
|
|
35
|
+
/** Number is less than the given minimum threshold value "$threshold" */
|
|
36
|
+
'number.greater-than': 'Mora biti veće od {{threshold}}',
|
|
37
|
+
/** Number is greater than the given maximum threshold value "$threshold" */
|
|
38
|
+
'number.less-than': 'Mora biti manje od {{threshold}}',
|
|
39
|
+
/** Number is higher than the given maximum value "$maxNumber" */
|
|
40
|
+
'number.maximum': 'Mora biti manje ili jednako {{maxNumber}}',
|
|
41
|
+
/** Number has more precision (decimals) than the allowed "$limit" */
|
|
42
|
+
'number.maximum-precision': 'Maksimalna preciznost je {{limit}}',
|
|
43
|
+
/** Number is lower than the given minimum value "$minNumber" */
|
|
44
|
+
'number.minimum': 'Mora biti veće ili jednako {{minNumber}}',
|
|
45
|
+
/** Number is not an integer ("whole number") */
|
|
46
|
+
'number.non-integer': 'Mora biti cijeli broj',
|
|
47
|
+
|
|
48
|
+
/** Object is missing a reference to an asset document in its `asset` field */
|
|
49
|
+
'object.asset-required': 'Datoteka je obavezna',
|
|
50
|
+
/** Object is missing a reference to a file asset document in its `asset` field */
|
|
51
|
+
'object.asset-required_file': 'Datoteka je obavezna',
|
|
52
|
+
/** Object is missing a reference to an image asset document in its `asset` field */
|
|
53
|
+
'object.asset-required_image': 'Slika je obavezna',
|
|
54
|
+
/** Object is not a reference to a document (eg `{_ref: 'documentId'}`) */
|
|
55
|
+
'object.not-reference': 'Mora biti referenca na dokument',
|
|
56
|
+
/** Object references a document which is not published */
|
|
57
|
+
'object.reference-not-published': 'Referencirani dokument mora biti objavljen',
|
|
58
|
+
|
|
59
|
+
/** Accessibility label for closing the validation panel */
|
|
60
|
+
'panel.close-button-aria-label': 'Zatvori validaciju',
|
|
61
|
+
/** Message shown when the validation panel is opened but there are no errors/warnings */
|
|
62
|
+
'panel.no-errors-message': 'Nema grešaka u validaciji',
|
|
63
|
+
/** Title for the actual "Validation" panel/feature */
|
|
64
|
+
'panel.title': 'Validacija',
|
|
65
|
+
|
|
66
|
+
/** Slug is an object, but is missing a `current` string property */
|
|
67
|
+
'slug.missing-current': 'Slug mora imati vrijednost',
|
|
68
|
+
/** Slug is not an object (eg `{current: 'some-slug'}`) */
|
|
69
|
+
'slug.not-object': 'Slug mora biti objekt',
|
|
70
|
+
/** Slug is already in use somewhere else, but needs to be unique */
|
|
71
|
+
'slug.not-unique': 'Slug se već koristi',
|
|
72
|
+
|
|
73
|
+
/** String is not a valid email address */
|
|
74
|
+
'string.email': 'Mora biti valjana email adresa',
|
|
75
|
+
/** String has a different character length than the exact number "$wantedLength" */
|
|
76
|
+
'string.exact-length': 'Mora biti točno {{wantedLength}} znakova dugo',
|
|
77
|
+
/** String contains characters that are not in lowercase */
|
|
78
|
+
'string.lowercase': 'Mora sadržavati samo mala slova',
|
|
79
|
+
/** String is longer than the limit of "$maxLength" characters */
|
|
80
|
+
'string.maximum-length': 'Mora biti najviše {{maxLength}} znakova dugo',
|
|
81
|
+
/** String is shorter than the limit of "$minLength" characters */
|
|
82
|
+
'string.minimum-length': 'Mora biti najmanje {{minLength}} znakova dugo',
|
|
83
|
+
/** String does not match the given regular expression, but should */
|
|
84
|
+
'string.regex-does-not-match': 'Ne odgovara "{{name}}"-uzorku',
|
|
85
|
+
/** String matches the given regular expression, but should not */
|
|
86
|
+
'string.regex-match': 'Ne smije odgovarati "{{name}}"-uzorku',
|
|
87
|
+
/** String contains characters that are not in uppercase */
|
|
88
|
+
'string.uppercase': 'Mora sadržavati samo velika slova',
|
|
89
|
+
/** String contains a protocol/scheme that is not allowed, eg (`ftp`, `mailto`…) */
|
|
90
|
+
'string.url.disallowed-scheme': 'Ne odgovara dozvoljenim protokolima/shemama',
|
|
91
|
+
/** String contains a URL with a username or password specified before the host */
|
|
92
|
+
'string.url.includes-credentials': 'Korisničko ime/lozinka nisu dozvoljeni',
|
|
93
|
+
/** String is not a valid URL */
|
|
94
|
+
'string.url.invalid': 'Nije valjan URL',
|
|
95
|
+
/** String is not an absolute URL (eg it is missing a protocol/host) */
|
|
96
|
+
'string.url.not-absolute': 'Relativni URL-ovi nisu dozvoljeni',
|
|
97
|
+
/** String is not a relative URL (eg it contains a protocol/host) */
|
|
98
|
+
'string.url.not-relative': 'Dozvoljeni su samo relativni URL-ovi',
|
|
99
|
+
})
|
package/src/vision.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {removeUndefinedLocaleResources} from 'sanity'
|
|
2
|
+
|
|
3
|
+
export default removeUndefinedLocaleResources({
|
|
4
|
+
/** Label for action "Copy to clipboard", tied to the "Query URL" field. Also used for accessibility purposes on button */
|
|
5
|
+
'action.copy-url-to-clipboard': 'Kopiraj u međuspremnik',
|
|
6
|
+
/** Label for stopping an ongoing listen operation */
|
|
7
|
+
'action.listen-cancel': 'Zaustavi',
|
|
8
|
+
/** Label for setting up a listener */
|
|
9
|
+
'action.listen-execute': 'Slušaj',
|
|
10
|
+
/** Label for cancelling an ongoing query */
|
|
11
|
+
'action.query-cancel': 'Otkaži',
|
|
12
|
+
/** Label for executing the query, eg doing a fetch */
|
|
13
|
+
'action.query-execute': 'Dohvati',
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Some features has a "New" label indicating that the feature was recently introduced.
|
|
17
|
+
* This defines what the text of that label is. Keep it short and sweet.
|
|
18
|
+
*/
|
|
19
|
+
'label.new': 'Novo',
|
|
20
|
+
|
|
21
|
+
/** Error message for when the "Params" input are not a valid json */
|
|
22
|
+
'params.error.params-invalid-json': 'Parametri nisu valjani JSON',
|
|
23
|
+
/** Label for "Params" (parameters) editor/input */
|
|
24
|
+
'params.label': 'Parametri',
|
|
25
|
+
|
|
26
|
+
/** Label for 'Column' indicator when there is an error within the query */
|
|
27
|
+
'query.error.column': 'Stupac',
|
|
28
|
+
/** Label for 'Line' indicator when there is an error within the query */
|
|
29
|
+
'query.error.line': 'Linija',
|
|
30
|
+
/** Label for "Query" editor/input */
|
|
31
|
+
'query.label': 'Upit',
|
|
32
|
+
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
|
|
33
|
+
'query.url': 'URL upita',
|
|
34
|
+
|
|
35
|
+
/** Label for "End to End time" information of the fetched query */
|
|
36
|
+
'result.end-to-end-time-label': '"End to End" vrijeme',
|
|
37
|
+
/** Label for "Execution time" information of the fetched query */
|
|
38
|
+
'result.execution-time-label': 'Vrijeme izvršenja',
|
|
39
|
+
/** Label for "Result" explorer/view */
|
|
40
|
+
'result.label': 'Rezultat',
|
|
41
|
+
/**
|
|
42
|
+
* "Not applicable" message for when there is no Execution time or End to End time information
|
|
43
|
+
* available for the query (eg when the query has not been executed, or errored)
|
|
44
|
+
*/
|
|
45
|
+
'result.timing-not-applicable': 'n/a',
|
|
46
|
+
|
|
47
|
+
/** Label for the "API version" dropdown in settings */
|
|
48
|
+
'settings.api-version-label': 'Verzija API-ja',
|
|
49
|
+
/** Label for the "Custom API version" input in settings, shown when "other" is chosen as API version */
|
|
50
|
+
'settings.custom-api-version-label': 'Prilagođena verzija API-ja',
|
|
51
|
+
/** Label for the "Dataset" dropdown in vision settings */
|
|
52
|
+
'settings.dataset-label': 'Dataset',
|
|
53
|
+
/** Error label for when the API version in 'Custom API version' input is invalid */
|
|
54
|
+
'settings.error.invalid-api-version': 'Neispravna verzija API-ja',
|
|
55
|
+
/** Label for the "other" versions within the "API version" dropdown */
|
|
56
|
+
'settings.other-api-version-label': 'Ostalo',
|
|
57
|
+
/**
|
|
58
|
+
* Label for the "Perspective" dropdown in vision settings
|
|
59
|
+
* @see {@link https://www.sanity.io/docs/perspectives}
|
|
60
|
+
*/
|
|
61
|
+
'settings.perspective-label': 'Perspektiva',
|
|
62
|
+
/** Call to action to read the docs related to "Perspectives" */
|
|
63
|
+
'settings.perspectives.action.docs-link': 'Pročitaj dokumentaciju',
|
|
64
|
+
/** Description for popover that explains what "Perspectives" are */
|
|
65
|
+
'settings.perspectives.description':
|
|
66
|
+
'Perspektive omogućuju vašem upitu da se izvodi protiv različitih "pogleda" na sadržaj u vašem datasetu',
|
|
67
|
+
/** Title for popover that explains what "Perspectives" are */
|
|
68
|
+
'settings.perspectives.title': 'Perspektive',
|
|
69
|
+
})
|