@rxap/ngx-localize 19.0.3-dev.0 → 19.1.0-dev.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/CHANGELOG.md +10 -0
- package/compodoc/changelog.html +7 -0
- package/compodoc/dependencies.html +4 -2
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +278 -1
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +269 -19
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/I18nService.html +2 -2
- package/docs/html/classes/LanguageSelectorService.html +2 -2
- package/docs/html/functions/LanguageInterceptor.html +1 -1
- package/docs/html/functions/loadLanguages.html +1 -0
- package/docs/html/functions/xliffToJson.html +1 -0
- package/docs/html/index.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/I18nService.md +5 -5
- package/docs/markdown/classes/LanguageSelectorService.md +8 -8
- package/docs/markdown/functions/LanguageInterceptor.md +2 -2
- package/docs/markdown/functions/loadLanguages.md +29 -0
- package/docs/markdown/functions/xliffToJson.md +21 -0
- package/docs/markdown/globals.md +4 -2
- package/docs/wiki/Class.I18nService.md +4 -4
- package/docs/wiki/Class.LanguageSelectorService.md +7 -7
- package/docs/wiki/Function.LanguageInterceptor.md +1 -1
- package/docs/wiki/Function.loadLanguages.md +25 -0
- package/docs/wiki/Function.xliffToJson.md +17 -0
- package/docs/wiki/_Sidebar.md +2 -0
- package/docs/wiki/globals.md +3 -1
- package/fesm2022/rxap-ngx-localize.mjs +79 -1
- package/fesm2022/rxap-ngx-localize.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/load-languages.d.ts +1 -0
- package/lib/xliff-to-json.d.ts +1 -0
- package/package.json +17 -16
|
@@ -111,12 +111,24 @@
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="col-md-4">
|
|
113
113
|
<ul class="index-list">
|
|
114
|
+
<li>
|
|
115
|
+
<a href="#defaultLoadModule" title="src/lib/load-languages.ts" ><b>defaultLoadModule</b> (src/.../load-languages.ts)</a>
|
|
116
|
+
</li>
|
|
117
|
+
<li>
|
|
118
|
+
<a href="#fetchTranslations" title="src/lib/load-languages.ts" ><b>fetchTranslations</b> (src/.../load-languages.ts)</a>
|
|
119
|
+
</li>
|
|
114
120
|
<li>
|
|
115
121
|
<a href="#initGenerator" title="src/generators/init/generator.ts" ><b>initGenerator</b> (src/.../generator.ts)</a>
|
|
116
122
|
</li>
|
|
117
123
|
<li>
|
|
118
124
|
<a href="#LanguageInterceptor" title="src/lib/language-interceptor.ts" ><b>LanguageInterceptor</b> (src/.../language-interceptor.ts)</a>
|
|
119
125
|
</li>
|
|
126
|
+
<li>
|
|
127
|
+
<a href="#loadLanguages" title="src/lib/load-languages.ts" ><b>loadLanguages</b> (src/.../load-languages.ts)</a>
|
|
128
|
+
</li>
|
|
129
|
+
<li>
|
|
130
|
+
<a href="#xliffToJson" title="src/lib/xliff-to-json.ts" ><b>xliffToJson</b> (src/.../xliff-to-json.ts)</a>
|
|
131
|
+
</li>
|
|
120
132
|
</ul>
|
|
121
133
|
</td>
|
|
122
134
|
</tr>
|
|
@@ -124,7 +136,216 @@
|
|
|
124
136
|
</table>
|
|
125
137
|
</section>
|
|
126
138
|
|
|
127
|
-
<h3>src/
|
|
139
|
+
<h3>src/lib/load-languages.ts</h3>
|
|
140
|
+
<section data-compodoc="block-methods">
|
|
141
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
142
|
+
<tbody>
|
|
143
|
+
<tr>
|
|
144
|
+
<td class="col-md-4">
|
|
145
|
+
<a name="defaultLoadModule"></a>
|
|
146
|
+
<span class="name">
|
|
147
|
+
<span ><b>defaultLoadModule</b></span>
|
|
148
|
+
<a href="#defaultLoadModule"><span class="icon ion-ios-link"></span></a>
|
|
149
|
+
</span>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td class="col-md-4">
|
|
154
|
+
<code>defaultLoadModule(locale: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
155
|
+
</td>
|
|
156
|
+
</tr>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<tr>
|
|
162
|
+
<td class="col-md-4">
|
|
163
|
+
|
|
164
|
+
<div class="io-description">
|
|
165
|
+
<b>Parameters :</b>
|
|
166
|
+
|
|
167
|
+
<table class="params">
|
|
168
|
+
<thead>
|
|
169
|
+
<tr>
|
|
170
|
+
<td>Name</td>
|
|
171
|
+
<td>Type</td>
|
|
172
|
+
<td>Optional</td>
|
|
173
|
+
</tr>
|
|
174
|
+
</thead>
|
|
175
|
+
<tbody>
|
|
176
|
+
<tr>
|
|
177
|
+
<td>locale</td>
|
|
178
|
+
<td>
|
|
179
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
180
|
+
</td>
|
|
181
|
+
|
|
182
|
+
<td>
|
|
183
|
+
No
|
|
184
|
+
</td>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</tr>
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
190
|
+
</div>
|
|
191
|
+
</td>
|
|
192
|
+
</tr>
|
|
193
|
+
</tbody>
|
|
194
|
+
</table>
|
|
195
|
+
<table class="table table-sm table-bordered">
|
|
196
|
+
<tbody>
|
|
197
|
+
<tr>
|
|
198
|
+
<td class="col-md-4">
|
|
199
|
+
<a name="fetchTranslations"></a>
|
|
200
|
+
<span class="name">
|
|
201
|
+
<span ><b>fetchTranslations</b></span>
|
|
202
|
+
<a href="#fetchTranslations"><span class="icon ion-ios-link"></span></a>
|
|
203
|
+
</span>
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td class="col-md-4">
|
|
208
|
+
<code>fetchTranslations(locale: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, fallback: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
209
|
+
</td>
|
|
210
|
+
</tr>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
<tr>
|
|
216
|
+
<td class="col-md-4">
|
|
217
|
+
|
|
218
|
+
<div class="io-description">
|
|
219
|
+
<b>Parameters :</b>
|
|
220
|
+
|
|
221
|
+
<table class="params">
|
|
222
|
+
<thead>
|
|
223
|
+
<tr>
|
|
224
|
+
<td>Name</td>
|
|
225
|
+
<td>Type</td>
|
|
226
|
+
<td>Optional</td>
|
|
227
|
+
</tr>
|
|
228
|
+
</thead>
|
|
229
|
+
<tbody>
|
|
230
|
+
<tr>
|
|
231
|
+
<td>locale</td>
|
|
232
|
+
<td>
|
|
233
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
234
|
+
</td>
|
|
235
|
+
|
|
236
|
+
<td>
|
|
237
|
+
No
|
|
238
|
+
</td>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
</tr>
|
|
242
|
+
<tr>
|
|
243
|
+
<td>fallback</td>
|
|
244
|
+
<td>
|
|
245
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
246
|
+
</td>
|
|
247
|
+
|
|
248
|
+
<td>
|
|
249
|
+
No
|
|
250
|
+
</td>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
</tr>
|
|
254
|
+
</tbody>
|
|
255
|
+
</table>
|
|
256
|
+
</div>
|
|
257
|
+
</td>
|
|
258
|
+
</tr>
|
|
259
|
+
</tbody>
|
|
260
|
+
</table>
|
|
261
|
+
<table class="table table-sm table-bordered">
|
|
262
|
+
<tbody>
|
|
263
|
+
<tr>
|
|
264
|
+
<td class="col-md-4">
|
|
265
|
+
<a name="loadLanguages"></a>
|
|
266
|
+
<span class="name">
|
|
267
|
+
<span ><b>loadLanguages</b></span>
|
|
268
|
+
<a href="#loadLanguages"><span class="icon ion-ios-link"></span></a>
|
|
269
|
+
</span>
|
|
270
|
+
</td>
|
|
271
|
+
</tr>
|
|
272
|
+
<tr>
|
|
273
|
+
<td class="col-md-4">
|
|
274
|
+
<code>loadLanguages(loadModule, locale: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, fallback: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
275
|
+
</td>
|
|
276
|
+
</tr>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<tr>
|
|
282
|
+
<td class="col-md-4">
|
|
283
|
+
|
|
284
|
+
<div class="io-description">
|
|
285
|
+
<b>Parameters :</b>
|
|
286
|
+
|
|
287
|
+
<table class="params">
|
|
288
|
+
<thead>
|
|
289
|
+
<tr>
|
|
290
|
+
<td>Name</td>
|
|
291
|
+
<td>Type</td>
|
|
292
|
+
<td>Optional</td>
|
|
293
|
+
<td>Default value</td>
|
|
294
|
+
</tr>
|
|
295
|
+
</thead>
|
|
296
|
+
<tbody>
|
|
297
|
+
<tr>
|
|
298
|
+
<td>loadModule</td>
|
|
299
|
+
<td>
|
|
300
|
+
</td>
|
|
301
|
+
|
|
302
|
+
<td>
|
|
303
|
+
No
|
|
304
|
+
</td>
|
|
305
|
+
|
|
306
|
+
<td>
|
|
307
|
+
<code>defaultLoadModule</code>
|
|
308
|
+
</td>
|
|
309
|
+
|
|
310
|
+
</tr>
|
|
311
|
+
<tr>
|
|
312
|
+
<td>locale</td>
|
|
313
|
+
<td>
|
|
314
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
315
|
+
</td>
|
|
316
|
+
|
|
317
|
+
<td>
|
|
318
|
+
No
|
|
319
|
+
</td>
|
|
320
|
+
|
|
321
|
+
<td>
|
|
322
|
+
<code>localStorage.getItem("locale") || "en"</code>
|
|
323
|
+
</td>
|
|
324
|
+
|
|
325
|
+
</tr>
|
|
326
|
+
<tr>
|
|
327
|
+
<td>fallback</td>
|
|
328
|
+
<td>
|
|
329
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
330
|
+
</td>
|
|
331
|
+
|
|
332
|
+
<td>
|
|
333
|
+
No
|
|
334
|
+
</td>
|
|
335
|
+
|
|
336
|
+
<td>
|
|
337
|
+
<code>'messages'</code>
|
|
338
|
+
</td>
|
|
339
|
+
|
|
340
|
+
</tr>
|
|
341
|
+
</tbody>
|
|
342
|
+
</table>
|
|
343
|
+
</div>
|
|
344
|
+
</td>
|
|
345
|
+
</tr>
|
|
346
|
+
</tbody>
|
|
347
|
+
</table>
|
|
348
|
+
</section> <h3>src/generators/init/generator.ts</h3>
|
|
128
349
|
<section data-compodoc="block-methods">
|
|
129
350
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
130
351
|
<tbody>
|
|
@@ -267,6 +488,62 @@
|
|
|
267
488
|
</tr>
|
|
268
489
|
</tbody>
|
|
269
490
|
</table>
|
|
491
|
+
</section> <h3>src/lib/xliff-to-json.ts</h3>
|
|
492
|
+
<section data-compodoc="block-methods">
|
|
493
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
494
|
+
<tbody>
|
|
495
|
+
<tr>
|
|
496
|
+
<td class="col-md-4">
|
|
497
|
+
<a name="xliffToJson"></a>
|
|
498
|
+
<span class="name">
|
|
499
|
+
<span ><b>xliffToJson</b></span>
|
|
500
|
+
<a href="#xliffToJson"><span class="icon ion-ios-link"></span></a>
|
|
501
|
+
</span>
|
|
502
|
+
</td>
|
|
503
|
+
</tr>
|
|
504
|
+
<tr>
|
|
505
|
+
<td class="col-md-4">
|
|
506
|
+
<code>xliffToJson(translations: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
507
|
+
</td>
|
|
508
|
+
</tr>
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
<tr>
|
|
514
|
+
<td class="col-md-4">
|
|
515
|
+
|
|
516
|
+
<div class="io-description">
|
|
517
|
+
<b>Parameters :</b>
|
|
518
|
+
|
|
519
|
+
<table class="params">
|
|
520
|
+
<thead>
|
|
521
|
+
<tr>
|
|
522
|
+
<td>Name</td>
|
|
523
|
+
<td>Type</td>
|
|
524
|
+
<td>Optional</td>
|
|
525
|
+
</tr>
|
|
526
|
+
</thead>
|
|
527
|
+
<tbody>
|
|
528
|
+
<tr>
|
|
529
|
+
<td>translations</td>
|
|
530
|
+
<td>
|
|
531
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
532
|
+
</td>
|
|
533
|
+
|
|
534
|
+
<td>
|
|
535
|
+
No
|
|
536
|
+
</td>
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
</tr>
|
|
540
|
+
</tbody>
|
|
541
|
+
</table>
|
|
542
|
+
</div>
|
|
543
|
+
</td>
|
|
544
|
+
</tr>
|
|
545
|
+
</tbody>
|
|
546
|
+
</table>
|
|
270
547
|
</section>
|
|
271
548
|
|
|
272
549
|
|
package/compodoc/properties.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</ol>
|
|
103
103
|
<ul class="properties-list">
|
|
104
104
|
<li>
|
|
105
|
-
<b>Version</b> : 19.0
|
|
105
|
+
<b>Version</b> : 19.1.0-dev.0</li>
|
|
106
106
|
<li>
|
|
107
107
|
<b>Description</b> : This package provides internationalization (i18n) support for Angular applications, including services for language management, an HTTP interceptor for setting the `Accept-Language` header, and a language selector component. It allows you to set and manage the current language of your application, redirect users based on their language preference, and configure available languages. The package also includes an init generator to handle peer dependencies.
|
|
108
108
|
</li>
|