@rxap/ngx-localize 18.0.3-dev.2 → 18.0.3
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +7 -0
- package/compodoc/dependencies.html +2 -2
- package/compodoc/index.html +1 -1
- package/compodoc/injectables/I18nService.html +3 -3
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/classes/I18nService.html +2 -2
- package/docs/classes/LanguageSelectorService.html +2 -2
- package/docs/documentation.json +22 -22
- package/docs/functions/LanguageInterceptor.html +1 -1
- package/docs/index.html +1 -1
- package/esm2022/lib/i18n.service.mjs +4 -4
- package/fesm2022/rxap-ngx-localize.mjs +3 -3
- package/fesm2022/rxap-ngx-localize.mjs.map +1 -1
- package/package.json +9 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [18.0.3](https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.3...@rxap/ngx-localize@18.0.3) (2024-06-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/ngx-localize
|
|
9
|
+
|
|
10
|
+
## [18.0.3-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.2...@rxap/ngx-localize@18.0.3-dev.3) (2024-06-27)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- set the current language after the redirect is executed ([56b9caa](https://gitlab.com/rxap/packages/commit/56b9caa1004b5fc35dc985584399142a57f1f125))
|
|
15
|
+
|
|
6
16
|
## [18.0.3-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.1...@rxap/ngx-localize@18.0.3-dev.2) (2024-06-24)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ yarn add @rxap/ngx-localize
|
|
|
18
18
|
```
|
|
19
19
|
**Install peer dependencies:**
|
|
20
20
|
```bash
|
|
21
|
-
yarn add @angular/common@^18.0.1 @angular/core@^18.0.1 @rxap/config@^18.1.1-dev.
|
|
21
|
+
yarn add @angular/common@^18.0.1 @angular/core@^18.0.1 @rxap/config@^18.1.1-dev.4 @rxap/ngx-user@^18.0.3-dev.2 rxjs@^7.8.1
|
|
22
22
|
```
|
|
23
23
|
**Execute the init generator:**
|
|
24
24
|
```bash
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,13 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.3...@rxap/ngx-localize@18.0.3">18.0.3</a> (2024-06-28)</h2>
|
|
89
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-localize</p>
|
|
90
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.2...@rxap/ngx-localize@18.0.3-dev.3">18.0.3-dev.3</a> (2024-06-27)</h2>
|
|
91
|
+
<h3>Bug Fixes</h3>
|
|
92
|
+
<ul>
|
|
93
|
+
<li>set the current language after the redirect is executed (<a href="https://gitlab.com/rxap/packages/commit/56b9caa1004b5fc35dc985584399142a57f1f125">56b9caa</a>)</li>
|
|
94
|
+
</ul>
|
|
88
95
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-localize@18.0.3-dev.1...@rxap/ngx-localize@18.0.3-dev.2">18.0.3-dev.2</a> (2024-06-24)</h2>
|
|
89
96
|
<h3>Bug Fixes</h3>
|
|
90
97
|
<ul>
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
<li>
|
|
118
118
|
<b>@angular/core</b> : ^18.0.1</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@rxap/config</b> : ^18.1.1-dev.
|
|
120
|
+
<b>@rxap/config</b> : ^18.1.1-dev.4</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/ngx-user</b> : ^18.0.3-dev.
|
|
122
|
+
<b>@rxap/ngx-user</b> : ^18.0.3-dev.2</li>
|
|
123
123
|
<li>
|
|
124
124
|
<b>rxjs</b> : ^7.8.1</li>
|
|
125
125
|
</ul>
|
package/compodoc/index.html
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<h1>Installation</h1>
|
|
97
97
|
<p><strong>Add the package to your workspace:</strong></p>
|
|
98
98
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @rxap/ngx-localize</code></pre></div><p><strong>Install peer dependencies:</strong></p>
|
|
99
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/common@^18.0.1 @angular/core@^18.0.1 @rxap/config@^18.1.1-dev.
|
|
99
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/common@^18.0.1 @angular/core@^18.0.1 @rxap/config@^18.1.1-dev.4 @rxap/ngx-user@^18.0.3-dev.2 rxjs@^7.8.1 </code></pre></div><p><strong>Execute the init generator:</strong></p>
|
|
100
100
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn nx g @rxap/ngx-localize:init</code></pre></div><h1>Generators</h1>
|
|
101
101
|
<h2>init</h2>
|
|
102
102
|
<blockquote>
|
|
@@ -400,12 +400,12 @@ export class I18nService {
|
|
|
400
400
|
|
|
401
401
|
public async setLanguage(language: string) {
|
|
402
402
|
await this.userSettingsLanguageService.setLanguage(language);
|
|
403
|
-
if (typeof (this.currentLanguage as any)['set'] === 'function') {
|
|
404
|
-
(this.currentLanguage as any).set(language);
|
|
405
|
-
}
|
|
406
403
|
if (!isDevMode()) {
|
|
407
404
|
this.redirect(language);
|
|
408
405
|
}
|
|
406
|
+
if (typeof (this.currentLanguage as any)['set'] === 'function') {
|
|
407
|
+
(this.currentLanguage as any).set(language);
|
|
408
|
+
}
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
public redirect(next: string, current: string = this.currentLanguage()) {
|