@sanity/locale-is-is 1.0.2 → 1.1.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/dist/_chunks/comments-SpiUuwLF.js +167 -0
- package/dist/_chunks/comments-SpiUuwLF.js.map +1 -0
- package/dist/_chunks/comments-hB2G1sqo.cjs +169 -0
- package/dist/_chunks/comments-hB2G1sqo.cjs.map +1 -0
- package/dist/_chunks/structure-M7uT5_XX.js +368 -0
- package/dist/_chunks/structure-M7uT5_XX.js.map +1 -0
- package/dist/_chunks/structure-lv94KFiK.cjs +370 -0
- package/dist/_chunks/structure-lv94KFiK.cjs.map +1 -0
- package/dist/_chunks/studio-fdZsSqTQ.cjs +1436 -0
- package/dist/_chunks/studio-fdZsSqTQ.cjs.map +1 -0
- package/dist/_chunks/studio-tRg3i2ap.js +1434 -0
- package/dist/_chunks/studio-tRg3i2ap.js.map +1 -0
- package/dist/_chunks/validation-H5OK87-V.js +95 -0
- package/dist/_chunks/{validation-wRUB77vZ.js.map → validation-H5OK87-V.js.map} +1 -1
- package/dist/_chunks/validation-l3NscSeO.cjs +97 -0
- package/dist/_chunks/{validation-2wudOQTs.cjs.map → validation-l3NscSeO.cjs.map} +1 -1
- package/dist/_chunks/vision-VEYiNJes.cjs +68 -0
- package/dist/_chunks/{vision-RoTeXNCg.cjs.map → vision-VEYiNJes.cjs.map} +1 -1
- package/dist/_chunks/vision-aeiwgLja.js +66 -0
- package/dist/_chunks/{vision-n6Al-dIH.js.map → vision-aeiwgLja.js.map} +1 -1
- package/dist/index.cjs +46 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/comments.ts +184 -0
- package/src/index.ts +5 -0
- package/src/structure.ts +13 -2
- package/src/studio.ts +18 -6
- package/dist/_chunks/structure-KNqvRYVR.cjs +0 -1
- package/dist/_chunks/structure-KNqvRYVR.cjs.map +0 -1
- package/dist/_chunks/structure-LbWgqwfA.js +0 -1
- package/dist/_chunks/structure-LbWgqwfA.js.map +0 -1
- package/dist/_chunks/studio-ROPCh5_d.js +0 -1
- package/dist/_chunks/studio-ROPCh5_d.js.map +0 -1
- package/dist/_chunks/studio-bQLTWBUR.cjs +0 -1
- package/dist/_chunks/studio-bQLTWBUR.cjs.map +0 -1
- package/dist/_chunks/validation-2wudOQTs.cjs +0 -1
- package/dist/_chunks/validation-wRUB77vZ.js +0 -1
- package/dist/_chunks/vision-RoTeXNCg.cjs +0 -1
- package/dist/_chunks/vision-n6Al-dIH.js +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var sanity = require('sanity');
|
|
4
|
+
|
|
5
|
+
var validation = sanity.removeUndefinedLocaleResources({
|
|
6
|
+
/** Array must have exactly "$wantedLength" items, but has more/less */
|
|
7
|
+
"array.exact-length": "Ver\xF0ur a\xF0 hafa n\xE1kv\xE6mlega {{wantedLength}} atri\xF0i",
|
|
8
|
+
/** Portable Text array must have exactly "$wantedLength" blocks, but has more/less */
|
|
9
|
+
"array.exact-length_blocks": "Ver\xF0ur a\xF0 hafa n\xE1kv\xE6mlega {{wantedLength}} blokkir",
|
|
10
|
+
/** Array item is a duplicate, but array wants only unique items */
|
|
11
|
+
"array.item-duplicate": "M\xE1 ekki vera afrit",
|
|
12
|
+
/** Array has more than the maximum of "$maxLength" items */
|
|
13
|
+
"array.maximum-length": "M\xE1 hafa \xED mesta lagi {{maxLength}} atri\xF0i",
|
|
14
|
+
/** Portable Text array has more than the maximum of "$maxLength" items */
|
|
15
|
+
"array.maximum-length_blocks": "M\xE1 hafa \xED mesta lagi {{maxLength}} blokkir",
|
|
16
|
+
/** Array has less than the minimum of "$minLength" items */
|
|
17
|
+
"array.minimum-length": "Ver\xF0ur a\xF0 hafa a\xF0 minnsta kosti {{minLength}} atri\xF0i",
|
|
18
|
+
/** Portable Text array has less than the minimum of "$minLength" blocks */
|
|
19
|
+
"array.minimum-length_blocks": "Ver\xF0ur a\xF0 hafa a\xF0 minnsta kosti {{minLength}} blokkir",
|
|
20
|
+
/** Date is not valid or not in the correct format (ISO-8601) */
|
|
21
|
+
"date.invalid-format": "Ver\xF0ur a\xF0 vera gilt ISO-8601 sni\xF0i\xF0 dagsetning",
|
|
22
|
+
/** Date is later than the given maximum date "$maxDate" */
|
|
23
|
+
"date.maximum": "Ver\xF0ur a\xF0 vera \xE1 e\xF0a fyrir {{maxDate}}",
|
|
24
|
+
/** Date is earlier than the given minimum date "$minDate" */
|
|
25
|
+
"date.minimum": "Ver\xF0ur a\xF0 vera \xE1 e\xF0a eftir {{minDate}}",
|
|
26
|
+
/** A value of incorrect type is found, eg found `number` instead of `string` */
|
|
27
|
+
"generic.incorrect-type": 'V\xE6ntanlegur t\xFDpa "{{expectedType}}", f\xE9kk "{{actualType}}"',
|
|
28
|
+
/** Value is not one of the values specifically allowed */
|
|
29
|
+
"generic.not-allowed": "Gildi passa\xF0i ekki vi\xF0 nein leyf\xF0 gildi",
|
|
30
|
+
/** Value "$givenValue" is not one of the values specifically allowed */
|
|
31
|
+
"generic.not-allowed_hint": 'Gildi "{{hint}}" passa\xF0i ekki vi\xF0 nein leyf\xF0 gildi',
|
|
32
|
+
/** A value is expected, but none is provided */
|
|
33
|
+
"generic.required": "Krafist",
|
|
34
|
+
/** Number is less than the given minimum threshold value "$threshold" */
|
|
35
|
+
"number.greater-than": "Ver\xF0ur a\xF0 vera meira en {{threshold}}",
|
|
36
|
+
/** Number is greater than the given maximum threshold value "$threshold" */
|
|
37
|
+
"number.less-than": "Ver\xF0ur a\xF0 vera minna en {{threshold}}",
|
|
38
|
+
/** Number is higher than the given maximum value "$maxNumber" */
|
|
39
|
+
"number.maximum": "Ver\xF0ur a\xF0 vera l\xE6gra en e\xF0a jafnt og {{maxNumber}}",
|
|
40
|
+
/** Number has more precision (decimals) than the allowed "$limit" */
|
|
41
|
+
"number.maximum-precision": "H\xE1marks n\xE1kv\xE6mni er {{limit}}",
|
|
42
|
+
/** Number is lower than the given minimum value "$minNumber" */
|
|
43
|
+
"number.minimum": "Ver\xF0ur a\xF0 vera meira en e\xF0a jafnt og {{minNumber}}",
|
|
44
|
+
/** Number is not an integer ("whole number") */
|
|
45
|
+
"number.non-integer": "Ver\xF0ur a\xF0 vera heiltala",
|
|
46
|
+
/** Object is missing a reference to an asset document in its `asset` field */
|
|
47
|
+
"object.asset-required": "Eign er krafist",
|
|
48
|
+
/** Object is missing a reference to a file asset document in its `asset` field */
|
|
49
|
+
"object.asset-required_file": "Skr\xE1 er krafist",
|
|
50
|
+
/** Object is missing a reference to an image asset document in its `asset` field */
|
|
51
|
+
"object.asset-required_image": "Mynd er krafist",
|
|
52
|
+
/** Object is not a reference to a document (eg `{_ref: 'documentId'}`) */
|
|
53
|
+
"object.not-reference": "Ver\xF0ur a\xF0 vera tilv\xEDsun \xED skjal",
|
|
54
|
+
/** Object references a document which is not published */
|
|
55
|
+
"object.reference-not-published": "Tilv\xEDsunarskjal ver\xF0ur a\xF0 vera birt",
|
|
56
|
+
/** Accessibility label for closing the validation panel */
|
|
57
|
+
"panel.close-button-aria-label": "Loka sta\xF0festingarvalmynd",
|
|
58
|
+
/** Message shown when the validation panel is opened but there are no errors/warnings */
|
|
59
|
+
"panel.no-errors-message": "Engar sta\xF0festingarvillur",
|
|
60
|
+
/** Title for the actual "Validation" panel/feature */
|
|
61
|
+
"panel.title": "Sta\xF0festing",
|
|
62
|
+
/** Slug is an object, but is missing a `current` string property */
|
|
63
|
+
"slug.missing-current": "Slug ver\xF0ur a\xF0 hafa gildi",
|
|
64
|
+
/** Slug is not an object (eg `{current: 'some-slug'}`) */
|
|
65
|
+
"slug.not-object": "Slug ver\xF0ur a\xF0 vera hlutur",
|
|
66
|
+
/** Slug is already in use somewhere else, but needs to be unique */
|
|
67
|
+
"slug.not-unique": "Slug er n\xFA \xFEegar \xED notkun",
|
|
68
|
+
/** String is not a valid email address */
|
|
69
|
+
"string.email": "Ver\xF0ur a\xF0 vera gilt netfang",
|
|
70
|
+
/** String has a different character length than the exact number "$wantedLength" */
|
|
71
|
+
"string.exact-length": "Ver\xF0ur a\xF0 vera n\xE1kv\xE6mlega {{wantedLength}} stafir a\xF0 lengd",
|
|
72
|
+
/** String contains characters that are not in lowercase */
|
|
73
|
+
"string.lowercase": "Ver\xF0ur a\xF0 vera allt l\xE1gstafir",
|
|
74
|
+
/** String is longer than the limit of "$maxLength" characters */
|
|
75
|
+
"string.maximum-length": "M\xE1 vera \xED mesta lagi {{maxLength}} stafir a\xF0 lengd",
|
|
76
|
+
/** String is shorter than the limit of "$minLength" characters */
|
|
77
|
+
"string.minimum-length": "Ver\xF0ur a\xF0 vera a\xF0 minnsta kosti {{minLength}} stafir a\xF0 lengd",
|
|
78
|
+
/** String does not match the given regular expression, but should */
|
|
79
|
+
"string.regex-does-not-match": 'Passar ekki vi\xF0 "{{name}}"-mynstri\xF0',
|
|
80
|
+
/** String matches the given regular expression, but should not */
|
|
81
|
+
"string.regex-match": '\xC1 ekki a\xF0 passa vi\xF0 "{{name}}"-mynstri\xF0',
|
|
82
|
+
/** String contains characters that are not in uppercase */
|
|
83
|
+
"string.uppercase": "Ver\xF0ur a\xF0 vera allt h\xE1stafir",
|
|
84
|
+
/** String contains a protocol/scheme that is not allowed, eg (`ftp`, `mailto`…) */
|
|
85
|
+
"string.url.disallowed-scheme": "Passar ekki vi\xF0 leyfileg pr\xF3t\xF3k\xF3l/sni\xF0",
|
|
86
|
+
/** String contains a URL with a username or password specified before the host */
|
|
87
|
+
"string.url.includes-credentials": "Notandanafn/lykilor\xF0 ekki leyft",
|
|
88
|
+
/** String is not a valid URL */
|
|
89
|
+
"string.url.invalid": "Ekki gilt vefsl\xF3\xF0",
|
|
90
|
+
/** String is not an absolute URL (eg it is missing a protocol/host) */
|
|
91
|
+
"string.url.not-absolute": "Afst\xE6\xF0ar vefsl\xF3\xF0ir eru ekki leyf\xF0ar",
|
|
92
|
+
/** String is not a relative URL (eg it contains a protocol/host) */
|
|
93
|
+
"string.url.not-relative": "A\xF0eins afst\xE6\xF0ar vefsl\xF3\xF0ir eru leyf\xF0ar"
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
exports.default = validation;
|
|
97
|
+
//# sourceMappingURL=validation-l3NscSeO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-
|
|
1
|
+
{"version":3,"file":"validation-l3NscSeO.cjs","sources":["../../src/validation.ts"],"sourcesContent":["import {removeUndefinedLocaleResources} from 'sanity'\n\nexport default removeUndefinedLocaleResources({\n /** Array must have exactly \"$wantedLength\" items, but has more/less */\n 'array.exact-length': 'Verður að hafa nákvæmlega {{wantedLength}} atriði',\n /** Portable Text array must have exactly \"$wantedLength\" blocks, but has more/less */\n 'array.exact-length_blocks': 'Verður að hafa nákvæmlega {{wantedLength}} blokkir',\n /** Array item is a duplicate, but array wants only unique items */\n 'array.item-duplicate': 'Má ekki vera afrit',\n /** Array has more than the maximum of \"$maxLength\" items */\n 'array.maximum-length': 'Má hafa í mesta lagi {{maxLength}} atriði',\n /** Portable Text array has more than the maximum of \"$maxLength\" items */\n 'array.maximum-length_blocks': 'Má hafa í mesta lagi {{maxLength}} blokkir',\n /** Array has less than the minimum of \"$minLength\" items */\n 'array.minimum-length': 'Verður að hafa að minnsta kosti {{minLength}} atriði',\n /** Portable Text array has less than the minimum of \"$minLength\" blocks */\n 'array.minimum-length_blocks': 'Verður að hafa að minnsta kosti {{minLength}} blokkir',\n\n /** Date is not valid or not in the correct format (ISO-8601) */\n 'date.invalid-format': 'Verður að vera gilt ISO-8601 sniðið dagsetning',\n /** Date is later than the given maximum date \"$maxDate\" */\n 'date.maximum': 'Verður að vera á eða fyrir {{maxDate}}',\n /** Date is earlier than the given minimum date \"$minDate\" */\n 'date.minimum': 'Verður að vera á eða eftir {{minDate}}',\n\n /** A value of incorrect type is found, eg found `number` instead of `string` */\n 'generic.incorrect-type': 'Væntanlegur týpa \"{{expectedType}}\", fékk \"{{actualType}}\"',\n /** Value is not one of the values specifically allowed */\n 'generic.not-allowed': 'Gildi passaði ekki við nein leyfð gildi',\n /** Value \"$givenValue\" is not one of the values specifically allowed */\n 'generic.not-allowed_hint': 'Gildi \"{{hint}}\" passaði ekki við nein leyfð gildi',\n /** A value is expected, but none is provided */\n 'generic.required': 'Krafist',\n\n /** Number is less than the given minimum threshold value \"$threshold\" */\n 'number.greater-than': 'Verður að vera meira en {{threshold}}',\n /** Number is greater than the given maximum threshold value \"$threshold\" */\n 'number.less-than': 'Verður að vera minna en {{threshold}}',\n /** Number is higher than the given maximum value \"$maxNumber\" */\n 'number.maximum': 'Verður að vera lægra en eða jafnt og {{maxNumber}}',\n /** Number has more precision (decimals) than the allowed \"$limit\" */\n 'number.maximum-precision': 'Hámarks nákvæmni er {{limit}}',\n /** Number is lower than the given minimum value \"$minNumber\" */\n 'number.minimum': 'Verður að vera meira en eða jafnt og {{minNumber}}',\n /** Number is not an integer (\"whole number\") */\n 'number.non-integer': 'Verður að vera heiltala',\n\n /** Object is missing a reference to an asset document in its `asset` field */\n 'object.asset-required': 'Eign er krafist',\n /** Object is missing a reference to a file asset document in its `asset` field */\n 'object.asset-required_file': 'Skrá er krafist',\n /** Object is missing a reference to an image asset document in its `asset` field */\n 'object.asset-required_image': 'Mynd er krafist',\n /** Object is not a reference to a document (eg `{_ref: 'documentId'}`) */\n 'object.not-reference': 'Verður að vera tilvísun í skjal',\n /** Object references a document which is not published */\n 'object.reference-not-published': 'Tilvísunarskjal verður að vera birt',\n\n /** Accessibility label for closing the validation panel */\n 'panel.close-button-aria-label': 'Loka staðfestingarvalmynd',\n /** Message shown when the validation panel is opened but there are no errors/warnings */\n 'panel.no-errors-message': 'Engar staðfestingarvillur',\n /** Title for the actual \"Validation\" panel/feature */\n 'panel.title': 'Staðfesting',\n\n /** Slug is an object, but is missing a `current` string property */\n 'slug.missing-current': 'Slug verður að hafa gildi',\n /** Slug is not an object (eg `{current: 'some-slug'}`) */\n 'slug.not-object': 'Slug verður að vera hlutur',\n /** Slug is already in use somewhere else, but needs to be unique */\n 'slug.not-unique': 'Slug er nú þegar í notkun',\n\n /** String is not a valid email address */\n 'string.email': 'Verður að vera gilt netfang',\n /** String has a different character length than the exact number \"$wantedLength\" */\n 'string.exact-length': 'Verður að vera nákvæmlega {{wantedLength}} stafir að lengd',\n /** String contains characters that are not in lowercase */\n 'string.lowercase': 'Verður að vera allt lágstafir',\n /** String is longer than the limit of \"$maxLength\" characters */\n 'string.maximum-length': 'Má vera í mesta lagi {{maxLength}} stafir að lengd',\n /** String is shorter than the limit of \"$minLength\" characters */\n 'string.minimum-length': 'Verður að vera að minnsta kosti {{minLength}} stafir að lengd',\n /** String does not match the given regular expression, but should */\n 'string.regex-does-not-match': 'Passar ekki við \"{{name}}\"-mynstrið',\n /** String matches the given regular expression, but should not */\n 'string.regex-match': 'Á ekki að passa við \"{{name}}\"-mynstrið',\n /** String contains characters that are not in uppercase */\n 'string.uppercase': 'Verður að vera allt hástafir',\n /** String contains a protocol/scheme that is not allowed, eg (`ftp`, `mailto`…) */\n 'string.url.disallowed-scheme': 'Passar ekki við leyfileg prótókól/snið',\n /** String contains a URL with a username or password specified before the host */\n 'string.url.includes-credentials': 'Notandanafn/lykilorð ekki leyft',\n /** String is not a valid URL */\n 'string.url.invalid': 'Ekki gilt vefslóð',\n /** String is not an absolute URL (eg it is missing a protocol/host) */\n 'string.url.not-absolute': 'Afstæðar vefslóðir eru ekki leyfðar',\n /** String is not a relative URL (eg it contains a protocol/host) */\n 'string.url.not-relative': 'Aðeins afstæðar vefslóðir eru leyfðar',\n})\n"],"names":["removeUndefinedLocaleResources"],"mappings":";;;;AAEA,iBAAeA,qCAA+B,CAAA;AAAA;AAAA,EAE5C,oBAAsB,EAAA,kEAAA;AAAA;AAAA,EAEtB,2BAA6B,EAAA,gEAAA;AAAA;AAAA,EAE7B,sBAAwB,EAAA,uBAAA;AAAA;AAAA,EAExB,sBAAwB,EAAA,oDAAA;AAAA;AAAA,EAExB,6BAA+B,EAAA,kDAAA;AAAA;AAAA,EAE/B,sBAAwB,EAAA,kEAAA;AAAA;AAAA,EAExB,6BAA+B,EAAA,gEAAA;AAAA;AAAA,EAG/B,qBAAuB,EAAA,4DAAA;AAAA;AAAA,EAEvB,cAAgB,EAAA,oDAAA;AAAA;AAAA,EAEhB,cAAgB,EAAA,oDAAA;AAAA;AAAA,EAGhB,wBAA0B,EAAA,qEAAA;AAAA;AAAA,EAE1B,qBAAuB,EAAA,kDAAA;AAAA;AAAA,EAEvB,0BAA4B,EAAA,6DAAA;AAAA;AAAA,EAE5B,kBAAoB,EAAA,SAAA;AAAA;AAAA,EAGpB,qBAAuB,EAAA,6CAAA;AAAA;AAAA,EAEvB,kBAAoB,EAAA,6CAAA;AAAA;AAAA,EAEpB,gBAAkB,EAAA,gEAAA;AAAA;AAAA,EAElB,0BAA4B,EAAA,wCAAA;AAAA;AAAA,EAE5B,gBAAkB,EAAA,6DAAA;AAAA;AAAA,EAElB,oBAAsB,EAAA,+BAAA;AAAA;AAAA,EAGtB,uBAAyB,EAAA,iBAAA;AAAA;AAAA,EAEzB,4BAA8B,EAAA,oBAAA;AAAA;AAAA,EAE9B,6BAA+B,EAAA,iBAAA;AAAA;AAAA,EAE/B,sBAAwB,EAAA,6CAAA;AAAA;AAAA,EAExB,gCAAkC,EAAA,8CAAA;AAAA;AAAA,EAGlC,+BAAiC,EAAA,8BAAA;AAAA;AAAA,EAEjC,yBAA2B,EAAA,8BAAA;AAAA;AAAA,EAE3B,aAAe,EAAA,gBAAA;AAAA;AAAA,EAGf,sBAAwB,EAAA,iCAAA;AAAA;AAAA,EAExB,iBAAmB,EAAA,kCAAA;AAAA;AAAA,EAEnB,iBAAmB,EAAA,oCAAA;AAAA;AAAA,EAGnB,cAAgB,EAAA,mCAAA;AAAA;AAAA,EAEhB,qBAAuB,EAAA,2EAAA;AAAA;AAAA,EAEvB,kBAAoB,EAAA,wCAAA;AAAA;AAAA,EAEpB,uBAAyB,EAAA,6DAAA;AAAA;AAAA,EAEzB,uBAAyB,EAAA,2EAAA;AAAA;AAAA,EAEzB,6BAA+B,EAAA,2CAAA;AAAA;AAAA,EAE/B,oBAAsB,EAAA,qDAAA;AAAA;AAAA,EAEtB,kBAAoB,EAAA,uCAAA;AAAA;AAAA,EAEpB,8BAAgC,EAAA,uDAAA;AAAA;AAAA,EAEhC,iCAAmC,EAAA,oCAAA;AAAA;AAAA,EAEnC,oBAAsB,EAAA,yBAAA;AAAA;AAAA,EAEtB,yBAA2B,EAAA,oDAAA;AAAA;AAAA,EAE3B,yBAA2B,EAAA,yDAAA;AAC7B,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var sanity = require('sanity');
|
|
4
|
+
|
|
5
|
+
var vision = sanity.removeUndefinedLocaleResources({
|
|
6
|
+
/** Label for action "Copy to clipboard", tied to the "Query URL" field. Also used for accessibility purposes on button */
|
|
7
|
+
"action.copy-url-to-clipboard": "Afrita \xE1 klippibor\xF0",
|
|
8
|
+
/** Label for stopping an ongoing listen operation */
|
|
9
|
+
"action.listen-cancel": "Stoppa",
|
|
10
|
+
/** Label for setting up a listener */
|
|
11
|
+
"action.listen-execute": "Hlusta",
|
|
12
|
+
/** Label for cancelling an ongoing query */
|
|
13
|
+
"action.query-cancel": "H\xE6tta vi\xF0",
|
|
14
|
+
/** Label for executing the query, eg doing a fetch */
|
|
15
|
+
"action.query-execute": "S\xE6kja",
|
|
16
|
+
/**
|
|
17
|
+
* Some features has a "New" label indicating that the feature was recently introduced.
|
|
18
|
+
* This defines what the text of that label is. Keep it short and sweet.
|
|
19
|
+
*/
|
|
20
|
+
"label.new": "N\xFDtt",
|
|
21
|
+
/** Error message for when the "Params" input are not a valid json */
|
|
22
|
+
"params.error.params-invalid-json": "Parametrar eru ekki gilt JSON",
|
|
23
|
+
/** Label for "Params" (parameters) editor/input */
|
|
24
|
+
"params.label": "Parametrar",
|
|
25
|
+
/** Label for 'Column' indicator when there is an error within the query */
|
|
26
|
+
"query.error.column": "D\xE1lkur",
|
|
27
|
+
/** Label for 'Line' indicator when there is an error within the query */
|
|
28
|
+
"query.error.line": "L\xEDna",
|
|
29
|
+
/** Label for "Query" editor/input */
|
|
30
|
+
"query.label": "Fyrirspurn",
|
|
31
|
+
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
|
|
32
|
+
"query.url": "Fyrirspurnarvefsl\xF3\xF0",
|
|
33
|
+
/** Label for "End to End time" information of the fetched query */
|
|
34
|
+
"result.end-to-end-time-label": "Enda-til-enda",
|
|
35
|
+
/** Label for "Execution time" information of the fetched query */
|
|
36
|
+
"result.execution-time-label": "Framkv\xE6mdart\xEDmi",
|
|
37
|
+
/** Label for "Result" explorer/view */
|
|
38
|
+
"result.label": "Ni\xF0ursta\xF0a",
|
|
39
|
+
/**
|
|
40
|
+
* "Not applicable" message for when there is no Execution time or End to End time information
|
|
41
|
+
* available for the query (eg when the query has not been executed, or errored)
|
|
42
|
+
*/
|
|
43
|
+
"result.timing-not-applicable": "ekki vi\xF0eigandi",
|
|
44
|
+
/** Label for the "API version" dropdown in settings */
|
|
45
|
+
"settings.api-version-label": "API \xFAtg\xE1fa",
|
|
46
|
+
/** Label for the "Custom API version" input in settings, shown when "other" is chosen as API version */
|
|
47
|
+
"settings.custom-api-version-label": "S\xE9rsni\xF0in API \xFAtg\xE1fa",
|
|
48
|
+
/** Label for the "Dataset" dropdown in vision settings */
|
|
49
|
+
"settings.dataset-label": "Dataset",
|
|
50
|
+
/** Error label for when the API version in 'Custom API version' input is invalid */
|
|
51
|
+
"settings.error.invalid-api-version": "\xD3gild API \xFAtg\xE1fa",
|
|
52
|
+
/** Label for the "other" versions within the "API version" dropdown */
|
|
53
|
+
"settings.other-api-version-label": "Anna\xF0",
|
|
54
|
+
/**
|
|
55
|
+
* Label for the "Perspective" dropdown in vision settings
|
|
56
|
+
* @see {@link https://www.sanity.io/docs/perspectives}
|
|
57
|
+
*/
|
|
58
|
+
"settings.perspective-label": "Perspective",
|
|
59
|
+
/** Call to action to read the docs related to "Perspectives" */
|
|
60
|
+
"settings.perspectives.action.docs-link": "Lestu skj\xF6lin",
|
|
61
|
+
/** Description for popover that explains what "Perspectives" are */
|
|
62
|
+
"settings.perspectives.description": 'Perspectives leyfa fyrirspurn \xFEinni a\xF0 keyra gegn mismunandi "s\xFDnum" af efni \xED dataset \xFE\xEDnu',
|
|
63
|
+
/** Title for popover that explains what "Perspectives" are */
|
|
64
|
+
"settings.perspectives.title": "Perspectives"
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
exports.default = vision;
|
|
68
|
+
//# sourceMappingURL=vision-VEYiNJes.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vision-
|
|
1
|
+
{"version":3,"file":"vision-VEYiNJes.cjs","sources":["../../src/vision.ts"],"sourcesContent":["import {removeUndefinedLocaleResources} from 'sanity'\n\nexport default removeUndefinedLocaleResources({\n /** Label for action \"Copy to clipboard\", tied to the \"Query URL\" field. Also used for accessibility purposes on button */\n 'action.copy-url-to-clipboard': 'Afrita á klippiborð',\n /** Label for stopping an ongoing listen operation */\n 'action.listen-cancel': 'Stoppa',\n /** Label for setting up a listener */\n 'action.listen-execute': 'Hlusta',\n /** Label for cancelling an ongoing query */\n 'action.query-cancel': 'Hætta við',\n /** Label for executing the query, eg doing a fetch */\n 'action.query-execute': 'Sækja',\n\n /**\n * Some features has a \"New\" label indicating that the feature was recently introduced.\n * This defines what the text of that label is. Keep it short and sweet.\n */\n 'label.new': 'Nýtt',\n\n /** Error message for when the \"Params\" input are not a valid json */\n 'params.error.params-invalid-json': 'Parametrar eru ekki gilt JSON',\n /** Label for \"Params\" (parameters) editor/input */\n 'params.label': 'Parametrar',\n\n /** Label for 'Column' indicator when there is an error within the query */\n 'query.error.column': 'Dálkur',\n /** Label for 'Line' indicator when there is an error within the query */\n 'query.error.line': 'Lína',\n /** Label for \"Query\" editor/input */\n 'query.label': 'Fyrirspurn',\n /** Label for the \"Query URL\" field, shown after executing a query, and allows for copying */\n 'query.url': 'Fyrirspurnarvefslóð',\n\n /** Label for \"End to End time\" information of the fetched query */\n 'result.end-to-end-time-label': 'Enda-til-enda',\n /** Label for \"Execution time\" information of the fetched query */\n 'result.execution-time-label': 'Framkvæmdartími',\n /** Label for \"Result\" explorer/view */\n 'result.label': 'Niðurstaða',\n /**\n * \"Not applicable\" message for when there is no Execution time or End to End time information\n * available for the query (eg when the query has not been executed, or errored)\n */\n 'result.timing-not-applicable': 'ekki viðeigandi',\n\n /** Label for the \"API version\" dropdown in settings */\n 'settings.api-version-label': 'API útgáfa',\n /** Label for the \"Custom API version\" input in settings, shown when \"other\" is chosen as API version */\n 'settings.custom-api-version-label': 'Sérsniðin API útgáfa',\n /** Label for the \"Dataset\" dropdown in vision settings */\n 'settings.dataset-label': 'Dataset',\n /** Error label for when the API version in 'Custom API version' input is invalid */\n 'settings.error.invalid-api-version': 'Ógild API útgáfa',\n /** Label for the \"other\" versions within the \"API version\" dropdown */\n 'settings.other-api-version-label': 'Annað',\n /**\n * Label for the \"Perspective\" dropdown in vision settings\n * @see {@link https://www.sanity.io/docs/perspectives}\n */\n 'settings.perspective-label': 'Perspective',\n /** Call to action to read the docs related to \"Perspectives\" */\n 'settings.perspectives.action.docs-link': 'Lestu skjölin',\n /** Description for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.description':\n 'Perspectives leyfa fyrirspurn þinni að keyra gegn mismunandi \"sýnum\" af efni í dataset þínu',\n /** Title for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.title': 'Perspectives',\n})\n"],"names":["removeUndefinedLocaleResources"],"mappings":";;;;AAEA,aAAeA,qCAA+B,CAAA;AAAA;AAAA,EAE5C,8BAAgC,EAAA,2BAAA;AAAA;AAAA,EAEhC,sBAAwB,EAAA,QAAA;AAAA;AAAA,EAExB,uBAAyB,EAAA,QAAA;AAAA;AAAA,EAEzB,qBAAuB,EAAA,iBAAA;AAAA;AAAA,EAEvB,sBAAwB,EAAA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,WAAa,EAAA,SAAA;AAAA;AAAA,EAGb,kCAAoC,EAAA,+BAAA;AAAA;AAAA,EAEpC,cAAgB,EAAA,YAAA;AAAA;AAAA,EAGhB,oBAAsB,EAAA,WAAA;AAAA;AAAA,EAEtB,kBAAoB,EAAA,SAAA;AAAA;AAAA,EAEpB,aAAe,EAAA,YAAA;AAAA;AAAA,EAEf,WAAa,EAAA,2BAAA;AAAA;AAAA,EAGb,8BAAgC,EAAA,eAAA;AAAA;AAAA,EAEhC,6BAA+B,EAAA,uBAAA;AAAA;AAAA,EAE/B,cAAgB,EAAA,kBAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,8BAAgC,EAAA,oBAAA;AAAA;AAAA,EAGhC,4BAA8B,EAAA,kBAAA;AAAA;AAAA,EAE9B,mCAAqC,EAAA,kCAAA;AAAA;AAAA,EAErC,wBAA0B,EAAA,SAAA;AAAA;AAAA,EAE1B,oCAAsC,EAAA,2BAAA;AAAA;AAAA,EAEtC,kCAAoC,EAAA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpC,4BAA8B,EAAA,aAAA;AAAA;AAAA,EAE9B,wCAA0C,EAAA,kBAAA;AAAA;AAAA,EAE1C,mCACE,EAAA,+GAAA;AAAA;AAAA,EAEF,6BAA+B,EAAA,cAAA;AACjC,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { removeUndefinedLocaleResources } from 'sanity';
|
|
2
|
+
|
|
3
|
+
var vision = 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": "Afrita \xE1 klippibor\xF0",
|
|
6
|
+
/** Label for stopping an ongoing listen operation */
|
|
7
|
+
"action.listen-cancel": "Stoppa",
|
|
8
|
+
/** Label for setting up a listener */
|
|
9
|
+
"action.listen-execute": "Hlusta",
|
|
10
|
+
/** Label for cancelling an ongoing query */
|
|
11
|
+
"action.query-cancel": "H\xE6tta vi\xF0",
|
|
12
|
+
/** Label for executing the query, eg doing a fetch */
|
|
13
|
+
"action.query-execute": "S\xE6kja",
|
|
14
|
+
/**
|
|
15
|
+
* Some features has a "New" label indicating that the feature was recently introduced.
|
|
16
|
+
* This defines what the text of that label is. Keep it short and sweet.
|
|
17
|
+
*/
|
|
18
|
+
"label.new": "N\xFDtt",
|
|
19
|
+
/** Error message for when the "Params" input are not a valid json */
|
|
20
|
+
"params.error.params-invalid-json": "Parametrar eru ekki gilt JSON",
|
|
21
|
+
/** Label for "Params" (parameters) editor/input */
|
|
22
|
+
"params.label": "Parametrar",
|
|
23
|
+
/** Label for 'Column' indicator when there is an error within the query */
|
|
24
|
+
"query.error.column": "D\xE1lkur",
|
|
25
|
+
/** Label for 'Line' indicator when there is an error within the query */
|
|
26
|
+
"query.error.line": "L\xEDna",
|
|
27
|
+
/** Label for "Query" editor/input */
|
|
28
|
+
"query.label": "Fyrirspurn",
|
|
29
|
+
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
|
|
30
|
+
"query.url": "Fyrirspurnarvefsl\xF3\xF0",
|
|
31
|
+
/** Label for "End to End time" information of the fetched query */
|
|
32
|
+
"result.end-to-end-time-label": "Enda-til-enda",
|
|
33
|
+
/** Label for "Execution time" information of the fetched query */
|
|
34
|
+
"result.execution-time-label": "Framkv\xE6mdart\xEDmi",
|
|
35
|
+
/** Label for "Result" explorer/view */
|
|
36
|
+
"result.label": "Ni\xF0ursta\xF0a",
|
|
37
|
+
/**
|
|
38
|
+
* "Not applicable" message for when there is no Execution time or End to End time information
|
|
39
|
+
* available for the query (eg when the query has not been executed, or errored)
|
|
40
|
+
*/
|
|
41
|
+
"result.timing-not-applicable": "ekki vi\xF0eigandi",
|
|
42
|
+
/** Label for the "API version" dropdown in settings */
|
|
43
|
+
"settings.api-version-label": "API \xFAtg\xE1fa",
|
|
44
|
+
/** Label for the "Custom API version" input in settings, shown when "other" is chosen as API version */
|
|
45
|
+
"settings.custom-api-version-label": "S\xE9rsni\xF0in API \xFAtg\xE1fa",
|
|
46
|
+
/** Label for the "Dataset" dropdown in vision settings */
|
|
47
|
+
"settings.dataset-label": "Dataset",
|
|
48
|
+
/** Error label for when the API version in 'Custom API version' input is invalid */
|
|
49
|
+
"settings.error.invalid-api-version": "\xD3gild API \xFAtg\xE1fa",
|
|
50
|
+
/** Label for the "other" versions within the "API version" dropdown */
|
|
51
|
+
"settings.other-api-version-label": "Anna\xF0",
|
|
52
|
+
/**
|
|
53
|
+
* Label for the "Perspective" dropdown in vision settings
|
|
54
|
+
* @see {@link https://www.sanity.io/docs/perspectives}
|
|
55
|
+
*/
|
|
56
|
+
"settings.perspective-label": "Perspective",
|
|
57
|
+
/** Call to action to read the docs related to "Perspectives" */
|
|
58
|
+
"settings.perspectives.action.docs-link": "Lestu skj\xF6lin",
|
|
59
|
+
/** Description for popover that explains what "Perspectives" are */
|
|
60
|
+
"settings.perspectives.description": 'Perspectives leyfa fyrirspurn \xFEinni a\xF0 keyra gegn mismunandi "s\xFDnum" af efni \xED dataset \xFE\xEDnu',
|
|
61
|
+
/** Title for popover that explains what "Perspectives" are */
|
|
62
|
+
"settings.perspectives.title": "Perspectives"
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export { vision as default };
|
|
66
|
+
//# sourceMappingURL=vision-aeiwgLja.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vision-
|
|
1
|
+
{"version":3,"file":"vision-aeiwgLja.js","sources":["../../src/vision.ts"],"sourcesContent":["import {removeUndefinedLocaleResources} from 'sanity'\n\nexport default removeUndefinedLocaleResources({\n /** Label for action \"Copy to clipboard\", tied to the \"Query URL\" field. Also used for accessibility purposes on button */\n 'action.copy-url-to-clipboard': 'Afrita á klippiborð',\n /** Label for stopping an ongoing listen operation */\n 'action.listen-cancel': 'Stoppa',\n /** Label for setting up a listener */\n 'action.listen-execute': 'Hlusta',\n /** Label for cancelling an ongoing query */\n 'action.query-cancel': 'Hætta við',\n /** Label for executing the query, eg doing a fetch */\n 'action.query-execute': 'Sækja',\n\n /**\n * Some features has a \"New\" label indicating that the feature was recently introduced.\n * This defines what the text of that label is. Keep it short and sweet.\n */\n 'label.new': 'Nýtt',\n\n /** Error message for when the \"Params\" input are not a valid json */\n 'params.error.params-invalid-json': 'Parametrar eru ekki gilt JSON',\n /** Label for \"Params\" (parameters) editor/input */\n 'params.label': 'Parametrar',\n\n /** Label for 'Column' indicator when there is an error within the query */\n 'query.error.column': 'Dálkur',\n /** Label for 'Line' indicator when there is an error within the query */\n 'query.error.line': 'Lína',\n /** Label for \"Query\" editor/input */\n 'query.label': 'Fyrirspurn',\n /** Label for the \"Query URL\" field, shown after executing a query, and allows for copying */\n 'query.url': 'Fyrirspurnarvefslóð',\n\n /** Label for \"End to End time\" information of the fetched query */\n 'result.end-to-end-time-label': 'Enda-til-enda',\n /** Label for \"Execution time\" information of the fetched query */\n 'result.execution-time-label': 'Framkvæmdartími',\n /** Label for \"Result\" explorer/view */\n 'result.label': 'Niðurstaða',\n /**\n * \"Not applicable\" message for when there is no Execution time or End to End time information\n * available for the query (eg when the query has not been executed, or errored)\n */\n 'result.timing-not-applicable': 'ekki viðeigandi',\n\n /** Label for the \"API version\" dropdown in settings */\n 'settings.api-version-label': 'API útgáfa',\n /** Label for the \"Custom API version\" input in settings, shown when \"other\" is chosen as API version */\n 'settings.custom-api-version-label': 'Sérsniðin API útgáfa',\n /** Label for the \"Dataset\" dropdown in vision settings */\n 'settings.dataset-label': 'Dataset',\n /** Error label for when the API version in 'Custom API version' input is invalid */\n 'settings.error.invalid-api-version': 'Ógild API útgáfa',\n /** Label for the \"other\" versions within the \"API version\" dropdown */\n 'settings.other-api-version-label': 'Annað',\n /**\n * Label for the \"Perspective\" dropdown in vision settings\n * @see {@link https://www.sanity.io/docs/perspectives}\n */\n 'settings.perspective-label': 'Perspective',\n /** Call to action to read the docs related to \"Perspectives\" */\n 'settings.perspectives.action.docs-link': 'Lestu skjölin',\n /** Description for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.description':\n 'Perspectives leyfa fyrirspurn þinni að keyra gegn mismunandi \"sýnum\" af efni í dataset þínu',\n /** Title for popover that explains what \"Perspectives\" are */\n 'settings.perspectives.title': 'Perspectives',\n})\n"],"names":[],"mappings":";;AAEA,aAAe,8BAA+B,CAAA;AAAA;AAAA,EAE5C,8BAAgC,EAAA,2BAAA;AAAA;AAAA,EAEhC,sBAAwB,EAAA,QAAA;AAAA;AAAA,EAExB,uBAAyB,EAAA,QAAA;AAAA;AAAA,EAEzB,qBAAuB,EAAA,iBAAA;AAAA;AAAA,EAEvB,sBAAwB,EAAA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,WAAa,EAAA,SAAA;AAAA;AAAA,EAGb,kCAAoC,EAAA,+BAAA;AAAA;AAAA,EAEpC,cAAgB,EAAA,YAAA;AAAA;AAAA,EAGhB,oBAAsB,EAAA,WAAA;AAAA;AAAA,EAEtB,kBAAoB,EAAA,SAAA;AAAA;AAAA,EAEpB,aAAe,EAAA,YAAA;AAAA;AAAA,EAEf,WAAa,EAAA,2BAAA;AAAA;AAAA,EAGb,8BAAgC,EAAA,eAAA;AAAA;AAAA,EAEhC,6BAA+B,EAAA,uBAAA;AAAA;AAAA,EAE/B,cAAgB,EAAA,kBAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,8BAAgC,EAAA,oBAAA;AAAA;AAAA,EAGhC,4BAA8B,EAAA,kBAAA;AAAA;AAAA,EAE9B,mCAAqC,EAAA,kCAAA;AAAA;AAAA,EAErC,wBAA0B,EAAA,SAAA;AAAA;AAAA,EAE1B,oCAAsC,EAAA,2BAAA;AAAA;AAAA,EAEtC,kCAAoC,EAAA,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpC,4BAA8B,EAAA,aAAA;AAAA;AAAA,EAE9B,wCAA0C,EAAA,kBAAA;AAAA;AAAA,EAE1C,mCACE,EAAA,+GAAA;AAAA;AAAA,EAEF,6BAA+B,EAAA,cAAA;AACjC,CAAC,CAAA;;;;"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var sanity = require('sanity');
|
|
6
|
+
|
|
7
|
+
const locale = sanity.defineLocale({
|
|
8
|
+
id: "is-IS",
|
|
9
|
+
title: "\xCDslenska",
|
|
10
|
+
bundles: [
|
|
11
|
+
{
|
|
12
|
+
namespace: "structure",
|
|
13
|
+
resources: () => Promise.resolve().then(function () { return require('./_chunks/structure-lv94KFiK.cjs'); })
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
namespace: "studio",
|
|
17
|
+
resources: () => Promise.resolve().then(function () { return require('./_chunks/studio-fdZsSqTQ.cjs'); })
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
namespace: "validation",
|
|
21
|
+
resources: () => Promise.resolve().then(function () { return require('./_chunks/validation-l3NscSeO.cjs'); })
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
namespace: "comments",
|
|
25
|
+
resources: () => Promise.resolve().then(function () { return require('./_chunks/comments-hB2G1sqo.cjs'); })
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
namespace: "vision",
|
|
29
|
+
resources: () => Promise.resolve().then(function () { return require('./_chunks/vision-VEYiNJes.cjs'); })
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
weekInfo: {
|
|
33
|
+
firstDay: 1,
|
|
34
|
+
minimalDays: 4,
|
|
35
|
+
weekend: [6, 7]
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const isISLocale = sanity.definePlugin((config) => ({
|
|
39
|
+
name: "@sanity/locale-is-is",
|
|
40
|
+
i18n: {
|
|
41
|
+
locales: [config ? { ...locale, ...config } : locale]
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
|
|
45
|
+
exports.isISLocale = isISLocale;
|
|
46
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import {defineLocale, definePlugin, type LocaleDefinition} from 'sanity'\n\nconst locale = defineLocale({\n id: 'is-IS',\n title: 'Íslenska',\n bundles: [\n {\n namespace: 'structure',\n resources: () => import('./structure'),\n },\n\n {\n namespace: 'studio',\n resources: () => import('./studio'),\n },\n\n {\n namespace: 'validation',\n resources: () => import('./validation'),\n },\n\n {\n namespace: 'vision',\n resources: () => import('./vision'),\n },\n ],\n weekInfo: {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n },\n})\n\n/**\n * Íslenska / Icelandic locale/translation plugin for Sanity Studio\n *\n * @public\n */\nexport const isISLocale = definePlugin<{\n title?: string\n weekInfo?: LocaleDefinition['weekInfo']\n} | void>((config) => ({\n name: '@sanity/locale-is-is',\n i18n: {\n locales: [config ? {...locale, ...config} : locale],\n },\n}))\n"],"names":["
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import {defineLocale, definePlugin, type LocaleDefinition} from 'sanity'\n\nconst locale = defineLocale({\n id: 'is-IS',\n title: 'Íslenska',\n bundles: [\n {\n namespace: 'structure',\n resources: () => import('./structure'),\n },\n\n {\n namespace: 'studio',\n resources: () => import('./studio'),\n },\n\n {\n namespace: 'validation',\n resources: () => import('./validation'),\n },\n\n {\n namespace: 'comments',\n resources: () => import('./comments'),\n },\n\n {\n namespace: 'vision',\n resources: () => import('./vision'),\n },\n ],\n weekInfo: {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n },\n})\n\n/**\n * Íslenska / Icelandic locale/translation plugin for Sanity Studio\n *\n * @public\n */\nexport const isISLocale = definePlugin<{\n title?: string\n weekInfo?: LocaleDefinition['weekInfo']\n} | void>((config) => ({\n name: '@sanity/locale-is-is',\n i18n: {\n locales: [config ? {...locale, ...config} : locale],\n },\n}))\n"],"names":["defineLocale","definePlugin"],"mappings":";;;;;;AAEA,MAAM,SAASA,mBAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,OAAA;AAAA,EACJ,KAAO,EAAA,aAAA;AAAA,EACP,OAAS,EAAA;AAAA,IACP;AAAA,MACE,SAAW,EAAA,WAAA;AAAA,MACX,SAAA,EAAW,MAAM,oDAAO,kCAAa,KAAA;AAAA,KACvC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,QAAA;AAAA,MACX,SAAA,EAAW,MAAM,oDAAO,+BAAU,KAAA;AAAA,KACpC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,YAAA;AAAA,MACX,SAAA,EAAW,MAAM,oDAAO,mCAAc,KAAA;AAAA,KACxC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,UAAA;AAAA,MACX,SAAA,EAAW,MAAM,oDAAO,iCAAY,KAAA;AAAA,KACtC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,QAAA;AAAA,MACX,SAAA,EAAW,MAAM,oDAAO,+BAAU,KAAA;AAAA,KACpC;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA,CAAA;AAAA,IACV,WAAa,EAAA,CAAA;AAAA,IACb,OAAA,EAAS,CAAC,CAAA,EAAG,CAAC,CAAA;AAAA,GAChB;AACF,CAAC,CAAA,CAAA;AAOY,MAAA,UAAA,GAAaC,mBAGhB,CAAA,CAAC,MAAY,MAAA;AAAA,EACrB,IAAM,EAAA,sBAAA;AAAA,EACN,IAAM,EAAA;AAAA,IACJ,OAAA,EAAS,CAAC,MAAS,GAAA,EAAC,GAAG,MAAQ,EAAA,GAAG,MAAM,EAAA,GAAI,MAAM,CAAA;AAAA,GACpD;AACF,CAAE,CAAA;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1,42 @@
|
|
|
1
|
-
import{defineLocale
|
|
1
|
+
import { defineLocale, definePlugin } from 'sanity';
|
|
2
|
+
|
|
3
|
+
const locale = defineLocale({
|
|
4
|
+
id: "is-IS",
|
|
5
|
+
title: "\xCDslenska",
|
|
6
|
+
bundles: [
|
|
7
|
+
{
|
|
8
|
+
namespace: "structure",
|
|
9
|
+
resources: () => import('./_chunks/structure-M7uT5_XX.js')
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
namespace: "studio",
|
|
13
|
+
resources: () => import('./_chunks/studio-tRg3i2ap.js')
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
namespace: "validation",
|
|
17
|
+
resources: () => import('./_chunks/validation-H5OK87-V.js')
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
namespace: "comments",
|
|
21
|
+
resources: () => import('./_chunks/comments-SpiUuwLF.js')
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
namespace: "vision",
|
|
25
|
+
resources: () => import('./_chunks/vision-aeiwgLja.js')
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
weekInfo: {
|
|
29
|
+
firstDay: 1,
|
|
30
|
+
minimalDays: 4,
|
|
31
|
+
weekend: [6, 7]
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const isISLocale = definePlugin((config) => ({
|
|
35
|
+
name: "@sanity/locale-is-is",
|
|
36
|
+
i18n: {
|
|
37
|
+
locales: [config ? { ...locale, ...config } : locale]
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
export { isISLocale };
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import {defineLocale, definePlugin, type LocaleDefinition} from 'sanity'\n\nconst locale = defineLocale({\n id: 'is-IS',\n title: 'Íslenska',\n bundles: [\n {\n namespace: 'structure',\n resources: () => import('./structure'),\n },\n\n {\n namespace: 'studio',\n resources: () => import('./studio'),\n },\n\n {\n namespace: 'validation',\n resources: () => import('./validation'),\n },\n\n {\n namespace: 'vision',\n resources: () => import('./vision'),\n },\n ],\n weekInfo: {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n },\n})\n\n/**\n * Íslenska / Icelandic locale/translation plugin for Sanity Studio\n *\n * @public\n */\nexport const isISLocale = definePlugin<{\n title?: string\n weekInfo?: LocaleDefinition['weekInfo']\n} | void>((config) => ({\n name: '@sanity/locale-is-is',\n i18n: {\n locales: [config ? {...locale, ...config} : locale],\n },\n}))\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import {defineLocale, definePlugin, type LocaleDefinition} from 'sanity'\n\nconst locale = defineLocale({\n id: 'is-IS',\n title: 'Íslenska',\n bundles: [\n {\n namespace: 'structure',\n resources: () => import('./structure'),\n },\n\n {\n namespace: 'studio',\n resources: () => import('./studio'),\n },\n\n {\n namespace: 'validation',\n resources: () => import('./validation'),\n },\n\n {\n namespace: 'comments',\n resources: () => import('./comments'),\n },\n\n {\n namespace: 'vision',\n resources: () => import('./vision'),\n },\n ],\n weekInfo: {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n },\n})\n\n/**\n * Íslenska / Icelandic locale/translation plugin for Sanity Studio\n *\n * @public\n */\nexport const isISLocale = definePlugin<{\n title?: string\n weekInfo?: LocaleDefinition['weekInfo']\n} | void>((config) => ({\n name: '@sanity/locale-is-is',\n i18n: {\n locales: [config ? {...locale, ...config} : locale],\n },\n}))\n"],"names":[],"mappings":";;AAEA,MAAM,SAAS,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,OAAA;AAAA,EACJ,KAAO,EAAA,aAAA;AAAA,EACP,OAAS,EAAA;AAAA,IACP;AAAA,MACE,SAAW,EAAA,WAAA;AAAA,MACX,SAAA,EAAW,MAAM,OAAO,iCAAa,CAAA;AAAA,KACvC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,QAAA;AAAA,MACX,SAAA,EAAW,MAAM,OAAO,8BAAU,CAAA;AAAA,KACpC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,YAAA;AAAA,MACX,SAAA,EAAW,MAAM,OAAO,kCAAc,CAAA;AAAA,KACxC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,UAAA;AAAA,MACX,SAAA,EAAW,MAAM,OAAO,gCAAY,CAAA;AAAA,KACtC;AAAA,IAEA;AAAA,MACE,SAAW,EAAA,QAAA;AAAA,MACX,SAAA,EAAW,MAAM,OAAO,8BAAU,CAAA;AAAA,KACpC;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA,CAAA;AAAA,IACV,WAAa,EAAA,CAAA;AAAA,IACb,OAAA,EAAS,CAAC,CAAA,EAAG,CAAC,CAAA;AAAA,GAChB;AACF,CAAC,CAAA,CAAA;AAOY,MAAA,UAAA,GAAa,YAGhB,CAAA,CAAC,MAAY,MAAA;AAAA,EACrB,IAAM,EAAA,sBAAA;AAAA,EACN,IAAM,EAAA;AAAA,IACJ,OAAA,EAAS,CAAC,MAAS,GAAA,EAAC,GAAG,MAAQ,EAAA,GAAG,MAAM,EAAA,GAAI,MAAM,CAAA;AAAA,GACpD;AACF,CAAE,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/locale-is-is",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Icelandic / Íslenska locale/translation for Sanity Studio",
|
|
6
6
|
"keywords": [
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dist",
|
|
41
41
|
"src"
|
|
42
42
|
],
|
|
43
|
+
"browserslist": "extends @sanity/browserslist-config",
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"sanity": "^3.22.0"
|
|
45
46
|
},
|