@rxap/ngx-localize 19.1.1 → 19.2.0-dev.1
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 +13 -0
- package/compodoc/changelog.html +11 -0
- package/compodoc/dependencies.html +1 -1
- package/compodoc/injectables/LanguageSelectorService.html +12 -11
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +2 -2
- package/compodoc/miscellaneous/variables.html +32 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +217 -185
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/I18nService.html +3 -3
- package/docs/html/classes/LanguageSelectorService.html +4 -4
- package/docs/html/functions/LanguageInterceptor.html +2 -2
- package/docs/html/functions/defaultLoadModule.html +2 -2
- package/docs/html/functions/loadI18nBootstrapHook.html +1 -1
- package/docs/html/functions/loadLanguages.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/FetchTranslationsFunction.html +1 -1
- package/docs/html/types/LoadModuleFunction.html +1 -1
- package/docs/html/variables/LOCALE_STORAGE_KEY.html +1 -0
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/I18nService.md +5 -5
- package/docs/markdown/classes/LanguageSelectorService.md +7 -7
- package/docs/markdown/functions/LanguageInterceptor.md +2 -2
- package/docs/markdown/functions/defaultLoadModule.md +2 -2
- package/docs/markdown/functions/loadI18nBootstrapHook.md +2 -2
- package/docs/markdown/functions/loadLanguages.md +2 -2
- package/docs/markdown/globals.md +6 -2
- package/docs/markdown/type-aliases/FetchTranslationsFunction.md +2 -2
- package/docs/markdown/type-aliases/LoadModuleFunction.md +2 -2
- package/docs/markdown/variables/LOCALE_STORAGE_KEY.md +11 -0
- package/docs/wiki/Class.I18nService.md +4 -4
- package/docs/wiki/Class.LanguageSelectorService.md +6 -6
- package/docs/wiki/Function.LanguageInterceptor.md +1 -1
- package/docs/wiki/Function.defaultLoadModule.md +1 -1
- package/docs/wiki/Function.loadI18nBootstrapHook.md +1 -1
- package/docs/wiki/Function.loadLanguages.md +1 -1
- package/docs/wiki/TypeAlias.FetchTranslationsFunction.md +1 -1
- package/docs/wiki/TypeAlias.LoadModuleFunction.md +1 -1
- package/docs/wiki/Variable.LOCALE_STORAGE_KEY.md +7 -0
- package/docs/wiki/_Sidebar.md +4 -0
- package/docs/wiki/globals.md +5 -1
- package/fesm2022/rxap-ngx-localize.mjs +11 -9
- package/fesm2022/rxap-ngx-localize.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/const.d.ts +1 -0
- package/package.json +12 -12
|
@@ -291,7 +291,7 @@ and a fallback, then initializes the translations and optionally loads additiona
|
|
|
291
291
|
</td>
|
|
292
292
|
|
|
293
293
|
<td>
|
|
294
|
-
<code>localStorage.getItem(
|
|
294
|
+
<code>localStorage.getItem(LOCALE_STORAGE_KEY) || navigator.language || 'en'</code>
|
|
295
295
|
</td>
|
|
296
296
|
|
|
297
297
|
<td>
|
|
@@ -311,7 +311,7 @@ and a fallback, then initializes the translations and optionally loads additiona
|
|
|
311
311
|
</td>
|
|
312
312
|
|
|
313
313
|
<td>
|
|
314
|
-
<code>navigator.languages
|
|
314
|
+
<code>(navigator.languages ?? []).slice()</code>
|
|
315
315
|
</td>
|
|
316
316
|
|
|
317
317
|
<td>
|
|
@@ -111,6 +111,9 @@
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="col-md-4">
|
|
113
113
|
<ul class="index-list">
|
|
114
|
+
<li>
|
|
115
|
+
<a href="#LOCALE_STORAGE_KEY" title="src/lib/const.ts" ><b>LOCALE_STORAGE_KEY</b> (src/.../const.ts)</a>
|
|
116
|
+
</li>
|
|
114
117
|
<li>
|
|
115
118
|
<a href="#schematic" title="src/generators/init/index.ts" ><b>schematic</b> (src/.../index.ts)</a>
|
|
116
119
|
</li>
|
|
@@ -121,6 +124,35 @@
|
|
|
121
124
|
</table>
|
|
122
125
|
</section>
|
|
123
126
|
|
|
127
|
+
<h3>src/lib/const.ts</h3>
|
|
128
|
+
<section data-compodoc="block-properties">
|
|
129
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
130
|
+
<tbody>
|
|
131
|
+
<tr>
|
|
132
|
+
<td class="col-md-4">
|
|
133
|
+
<a name="LOCALE_STORAGE_KEY"></a>
|
|
134
|
+
<span class="name">
|
|
135
|
+
<span ><b>LOCALE_STORAGE_KEY</b></span>
|
|
136
|
+
<a href="#LOCALE_STORAGE_KEY"><span class="icon ion-ios-link"></span></a>
|
|
137
|
+
</span>
|
|
138
|
+
</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td class="col-md-4">
|
|
142
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
143
|
+
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
<tr>
|
|
147
|
+
<td class="col-md-4">
|
|
148
|
+
<i>Default value : </i><code>'locale'</code>
|
|
149
|
+
</td>
|
|
150
|
+
</tr>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
</tbody>
|
|
154
|
+
</table>
|
|
155
|
+
</section>
|
|
124
156
|
<h3>src/generators/init/index.ts</h3>
|
|
125
157
|
<section data-compodoc="block-properties">
|
|
126
158
|
<h3></h3> <table class="table table-sm table-bordered">
|
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.
|
|
105
|
+
<b>Version</b> : 19.2.0-dev.1</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>
|