Skip to content

Commit ded800a

Browse files
committed
chore(*): Update versions to not be static. Update contributing.
1 parent 57c0672 commit ded800a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ There are several ways to localize components' string resources:
9494
1.1. Localize a given instance of component - each component which supports localization has input property `resourceStrings`. Setting a newly instantiated object to this property will localize only that given component's instance.
9595
1.2. Localize all resources for a component type - each component which supports localization has input property `resourceStrings`. To localize all instances of a given component in the application the following steps should be performed - get the value of the input property `resourceStrings` of the component to be localized; do not create a new instance but replace the existing strings within the object. By default all components of a given type in an application share one instance of the resource strings. Replacing a value in that instance affects all components of that type in the application.
9696
1.3. Localize all resources for all components - use global method `getCurrentResourceStrings` to get an object containing current resource strings for all components. To provide localized resources just pass an object of type `IResourceStrings` to the global method `changei18n`.
97-
1.4 As of 20.2.0 the localization has new implementation and you can use the new API `registerI18n` to register resource string for a component or all components for the whole app, as well as which locale it corresponds to. To localize a single component you will need to get is corresponding resource string keys using one of the available resources and provide only those keys.
97+
1.4 As of 21.1.x the localization has new implementation and you can use the new API `registerI18n` to register resource string for a component or all components for the whole app, as well as which locale it corresponds to. To localize a single component you will need to get is corresponding resource string keys using one of the available resources and provide only those keys.
9898

9999
2. Using npm package:
100100
We've created new repository which will hold the resource strings for languages different than English:
101101
https://github.com/IgniteUI/igniteui-angular-i18n
102102

103103
**NOTE** The localization repo has been moved to live inside the `igniteui-angular` repository under `./projects/igniteui-angular-i18n`
104-
**NOTE** As of 20.1.x the localization resource strings have been moved to the [`igniteui-i18n`](https://github.com/IgniteUI/igniteui-i18n) repository under `projects/igniteui-i18n-resources`.
104+
**NOTE** As of 21.1.x the localization resource strings have been moved to the [`igniteui-i18n`](https://github.com/IgniteUI/igniteui-i18n) repository under `projects/igniteui-i18n-resources`.
105105

106106
A npm package should be published each time we release new version of Ignite UI for Angular. Its version should correspond to the version of the igniteui-angular npm package.
107107
One could localize an application by importing the corresponding localized resource strings from the localization package (`igniteui-angular-i18n`) and use the methods described in the previous bullet to localize the whole application or part of it.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"dompurify": "^3.3.0",
7777
"express": "^5.2.1",
7878
"fflate": "^0.8.1",
79-
"igniteui-i18n-core": "1.0.1",
79+
"igniteui-i18n-core": "^1.0.1",
8080
"igniteui-theming": "^24.0.0",
8181
"igniteui-trial-watermark": "^3.1.0",
8282
"jspdf": "^3.0.4",

projects/igniteui-angular-i18n/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://github.com/IgniteUI/igniteui-angular/projects/igniteui-angular-i18n#readme",
2626
"dependencies": {
27-
"igniteui-i18n-core": "1.0.1",
28-
"igniteui-i18n-resources": "1.0.1"
27+
"igniteui-i18n-core": "^1.0.1",
28+
"igniteui-i18n-resources": "^1.0.1"
2929
}
3030
}

projects/igniteui-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"jspdf": "^3.0.2",
7777
"lodash-es": "^4.17.21",
7878
"igniteui-theming": "^24.0.0",
79-
"igniteui-i18n-core": "1.0.1",
79+
"igniteui-i18n-core": "^1.0.1",
8080
"@igniteui/material-icons-extended": "^3.1.0"
8181
},
8282
"peerDependencies": {

0 commit comments

Comments
 (0)