react-native-paper-dates 0.10.1 → 0.11.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/README.md CHANGED
@@ -57,13 +57,12 @@ npm install react-native-paper-dates --save
57
57
 
58
58
  ## Import some localized strings
59
59
  Ideally you do this somewhere in your `index.js` before `react-native-paper-dates` is used.
60
- Currently we have en/nl/de/pl/pt/ar/ko/fr translations but it's really easy to add one extra since it are only some labels and error messages.
60
+ Currently we have en/nl/de/pl/pt/ar/ko/fr/it translations but it's really easy to add one extra since it are only some labels and error messages.
61
61
 
62
62
  ```tsx
63
63
  // e.g in your index.js
64
64
  import {
65
65
  // en,
66
- // fr,
67
66
  // nl,
68
67
  // de,
69
68
  // pl,
@@ -71,18 +70,20 @@ import {
71
70
  // ar,
72
71
  // ko
73
72
  // fr
73
+ // it,
74
74
  enGB,
75
75
  registerTranslation,
76
76
  } from 'react-native-paper-dates'
77
77
  // registerTranslation('en', en)
78
- // registerTranslation('fr', fr)
79
78
  // registerTranslation('nl', nl)
79
+ // registerTranslation('fr', fr)
80
80
  // registerTranslation('pl', pl)
81
81
  // registerTranslation('pt', pt)
82
82
  // registerTranslation('de', de)
83
83
  // registerTranslation('ar', ar)
84
84
  // registerTranslation('ko', ko)
85
85
  // registerTranslation('fr', fr)
86
+ // registerTranslation('it', it)
86
87
  registerTranslation('en-GB', enGB)
87
88
  ```
88
89
 
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ const it = {
8
+ save: 'Salva',
9
+ selectSingle: 'Seleziona la data',
10
+ selectMultiple: 'Seleziona le date',
11
+ selectRange: 'Seleziona il periodo',
12
+ notAccordingToDateFormat: inputFormat => `Il formato della data deve essere ${inputFormat}`,
13
+ mustBeHigherThan: date => `Deve essere successivo a ${date}`,
14
+ mustBeLowerThan: date => `Deve essere precedente a ${date}`,
15
+ mustBeBetween: (startDate, endDate) => `Deve essere compreso tra ${startDate} - ${endDate}`,
16
+ dateIsDisabled: 'Il giorno non è consentito',
17
+ previous: 'Precedente',
18
+ next: 'Successivo',
19
+ typeInDate: 'Digita la data',
20
+ pickDateFromCalendar: 'Scegli data dal calendario',
21
+ close: 'Chiudi'
22
+ };
23
+ var _default = it;
24
+ exports.default = _default;
25
+ //# sourceMappingURL=it.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["it","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","date","mustBeLowerThan","mustBeBetween","startDate","endDate","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"sources":["it.ts"],"sourcesContent":["import type { TranslationsType } from './utils'\n\nconst it: TranslationsType = {\n save: 'Salva',\n selectSingle: 'Seleziona la data',\n selectMultiple: 'Seleziona le date',\n selectRange: 'Seleziona il periodo',\n notAccordingToDateFormat: (inputFormat) =>\n `Il formato della data deve essere ${inputFormat}`,\n mustBeHigherThan: (date) => `Deve essere successivo a ${date}`,\n mustBeLowerThan: (date) => `Deve essere precedente a ${date}`,\n mustBeBetween: (startDate, endDate) =>\n `Deve essere compreso tra ${startDate} - ${endDate}`,\n dateIsDisabled: 'Il giorno non è consentito',\n previous: 'Precedente',\n next: 'Successivo',\n typeInDate: 'Digita la data',\n pickDateFromCalendar: 'Scegli data dal calendario',\n close: 'Chiudi',\n}\nexport default it\n"],"mappings":";;;;;;AAEA,MAAMA,EAAoB,GAAG;EAC3BC,IAAI,EAAE,OADqB;EAE3BC,YAAY,EAAE,mBAFa;EAG3BC,cAAc,EAAE,mBAHW;EAI3BC,WAAW,EAAE,sBAJc;EAK3BC,wBAAwB,EAAGC,WAAD,IACvB,qCAAoCA,WAAY,EANxB;EAO3BC,gBAAgB,EAAGC,IAAD,IAAW,4BAA2BA,IAAK,EAPlC;EAQ3BC,eAAe,EAAGD,IAAD,IAAW,4BAA2BA,IAAK,EARjC;EAS3BE,aAAa,EAAE,CAACC,SAAD,EAAYC,OAAZ,KACZ,4BAA2BD,SAAU,MAAKC,OAAQ,EAV1B;EAW3BC,cAAc,EAAE,4BAXW;EAY3BC,QAAQ,EAAE,YAZiB;EAa3BC,IAAI,EAAE,YAbqB;EAc3BC,UAAU,EAAE,gBAde;EAe3BC,oBAAoB,EAAE,4BAfK;EAgB3BC,KAAK,EAAE;AAhBoB,CAA7B;eAkBelB,E"}
@@ -0,0 +1,18 @@
1
+ const it = {
2
+ save: 'Salva',
3
+ selectSingle: 'Seleziona la data',
4
+ selectMultiple: 'Seleziona le date',
5
+ selectRange: 'Seleziona il periodo',
6
+ notAccordingToDateFormat: inputFormat => `Il formato della data deve essere ${inputFormat}`,
7
+ mustBeHigherThan: date => `Deve essere successivo a ${date}`,
8
+ mustBeLowerThan: date => `Deve essere precedente a ${date}`,
9
+ mustBeBetween: (startDate, endDate) => `Deve essere compreso tra ${startDate} - ${endDate}`,
10
+ dateIsDisabled: 'Il giorno non è consentito',
11
+ previous: 'Precedente',
12
+ next: 'Successivo',
13
+ typeInDate: 'Digita la data',
14
+ pickDateFromCalendar: 'Scegli data dal calendario',
15
+ close: 'Chiudi'
16
+ };
17
+ export default it;
18
+ //# sourceMappingURL=it.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["it","save","selectSingle","selectMultiple","selectRange","notAccordingToDateFormat","inputFormat","mustBeHigherThan","date","mustBeLowerThan","mustBeBetween","startDate","endDate","dateIsDisabled","previous","next","typeInDate","pickDateFromCalendar","close"],"sources":["it.ts"],"sourcesContent":["import type { TranslationsType } from './utils'\n\nconst it: TranslationsType = {\n save: 'Salva',\n selectSingle: 'Seleziona la data',\n selectMultiple: 'Seleziona le date',\n selectRange: 'Seleziona il periodo',\n notAccordingToDateFormat: (inputFormat) =>\n `Il formato della data deve essere ${inputFormat}`,\n mustBeHigherThan: (date) => `Deve essere successivo a ${date}`,\n mustBeLowerThan: (date) => `Deve essere precedente a ${date}`,\n mustBeBetween: (startDate, endDate) =>\n `Deve essere compreso tra ${startDate} - ${endDate}`,\n dateIsDisabled: 'Il giorno non è consentito',\n previous: 'Precedente',\n next: 'Successivo',\n typeInDate: 'Digita la data',\n pickDateFromCalendar: 'Scegli data dal calendario',\n close: 'Chiudi',\n}\nexport default it\n"],"mappings":"AAEA,MAAMA,EAAoB,GAAG;EAC3BC,IAAI,EAAE,OADqB;EAE3BC,YAAY,EAAE,mBAFa;EAG3BC,cAAc,EAAE,mBAHW;EAI3BC,WAAW,EAAE,sBAJc;EAK3BC,wBAAwB,EAAGC,WAAD,IACvB,qCAAoCA,WAAY,EANxB;EAO3BC,gBAAgB,EAAGC,IAAD,IAAW,4BAA2BA,IAAK,EAPlC;EAQ3BC,eAAe,EAAGD,IAAD,IAAW,4BAA2BA,IAAK,EARjC;EAS3BE,aAAa,EAAE,CAACC,SAAD,EAAYC,OAAZ,KACZ,4BAA2BD,SAAU,MAAKC,OAAQ,EAV1B;EAW3BC,cAAc,EAAE,4BAXW;EAY3BC,QAAQ,EAAE,YAZiB;EAa3BC,IAAI,EAAE,YAbqB;EAc3BC,UAAU,EAAE,gBAde;EAe3BC,oBAAoB,EAAE,4BAfK;EAgB3BC,KAAK,EAAE;AAhBoB,CAA7B;AAkBA,eAAelB,EAAf"}
@@ -0,0 +1,3 @@
1
+ import type { TranslationsType } from './utils';
2
+ declare const it: TranslationsType;
3
+ export default it;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-paper-dates",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "Performant Date Picker for React Native Paper",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -0,0 +1,21 @@
1
+ import type { TranslationsType } from './utils'
2
+
3
+ const it: TranslationsType = {
4
+ save: 'Salva',
5
+ selectSingle: 'Seleziona la data',
6
+ selectMultiple: 'Seleziona le date',
7
+ selectRange: 'Seleziona il periodo',
8
+ notAccordingToDateFormat: (inputFormat) =>
9
+ `Il formato della data deve essere ${inputFormat}`,
10
+ mustBeHigherThan: (date) => `Deve essere successivo a ${date}`,
11
+ mustBeLowerThan: (date) => `Deve essere precedente a ${date}`,
12
+ mustBeBetween: (startDate, endDate) =>
13
+ `Deve essere compreso tra ${startDate} - ${endDate}`,
14
+ dateIsDisabled: 'Il giorno non è consentito',
15
+ previous: 'Precedente',
16
+ next: 'Successivo',
17
+ typeInDate: 'Digita la data',
18
+ pickDateFromCalendar: 'Scegli data dal calendario',
19
+ close: 'Chiudi',
20
+ }
21
+ export default it