@progress/kendo-react-intl 12.0.2-develop.1 → 12.0.2-develop.2
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/Localization/LocalizationService.mjs +5 -0
- package/index.d.mts +10 -2
- package/index.d.ts +10 -2
- package/package.json +2 -2
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { messages as a } from "./messages.mjs";
|
|
9
9
|
class s {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new LocalizationService instance.
|
|
12
|
+
*
|
|
13
|
+
* @param language The language code for localization.
|
|
14
|
+
*/
|
|
10
15
|
constructor(t) {
|
|
11
16
|
if (this.language = t, t === "" && process.env.NODE_ENV !== "production")
|
|
12
17
|
throw "Language should not be an empty string";
|
package/index.d.mts
CHANGED
|
@@ -226,8 +226,16 @@ export declare interface LocalizationProviderProps {
|
|
|
226
226
|
* A service which provides localization methods.
|
|
227
227
|
*/
|
|
228
228
|
export declare class LocalizationService {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
/**
|
|
230
|
+
* The language code used for localization. When no string is available for this language, the default value is returned.
|
|
231
|
+
*/
|
|
232
|
+
language?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Creates a new LocalizationService instance.
|
|
235
|
+
*
|
|
236
|
+
* @param language The language code for localization.
|
|
237
|
+
*/
|
|
238
|
+
constructor(language?: string);
|
|
231
239
|
/**
|
|
232
240
|
* Provides a string based on a key for the current language. When no string for the current language is available under this key, the `defaultValue` is returned.
|
|
233
241
|
*
|
package/index.d.ts
CHANGED
|
@@ -226,8 +226,16 @@ export declare interface LocalizationProviderProps {
|
|
|
226
226
|
* A service which provides localization methods.
|
|
227
227
|
*/
|
|
228
228
|
export declare class LocalizationService {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
/**
|
|
230
|
+
* The language code used for localization. When no string is available for this language, the default value is returned.
|
|
231
|
+
*/
|
|
232
|
+
language?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Creates a new LocalizationService instance.
|
|
235
|
+
*
|
|
236
|
+
* @param language The language code for localization.
|
|
237
|
+
*/
|
|
238
|
+
constructor(language?: string);
|
|
231
239
|
/**
|
|
232
240
|
* Provides a string based on a key for the current language. When no string for the current language is available under this key, the `defaultValue` is returned.
|
|
233
241
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-intl",
|
|
3
|
-
"version": "12.0.2-develop.
|
|
3
|
+
"version": "12.0.2-develop.2",
|
|
4
4
|
"description": "React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-intl": "^3.1.1",
|
|
29
29
|
"@progress/kendo-licensing": "^1.7.0",
|
|
30
|
-
"@progress/kendo-react-common": "12.0.2-develop.
|
|
30
|
+
"@progress/kendo-react-common": "12.0.2-develop.2",
|
|
31
31
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
32
32
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
33
33
|
},
|