@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/compodoc/changelog.html +11 -0
  3. package/compodoc/dependencies.html +1 -1
  4. package/compodoc/injectables/LanguageSelectorService.html +12 -11
  5. package/compodoc/js/search/search_index.js +2 -2
  6. package/compodoc/miscellaneous/functions.html +2 -2
  7. package/compodoc/miscellaneous/variables.html +32 -0
  8. package/compodoc/properties.html +1 -1
  9. package/docs/documentation.json +217 -185
  10. package/docs/html/assets/navigation.js +1 -1
  11. package/docs/html/assets/search.js +1 -1
  12. package/docs/html/classes/I18nService.html +3 -3
  13. package/docs/html/classes/LanguageSelectorService.html +4 -4
  14. package/docs/html/functions/LanguageInterceptor.html +2 -2
  15. package/docs/html/functions/defaultLoadModule.html +2 -2
  16. package/docs/html/functions/loadI18nBootstrapHook.html +1 -1
  17. package/docs/html/functions/loadLanguages.html +2 -2
  18. package/docs/html/index.html +2 -2
  19. package/docs/html/modules.html +1 -1
  20. package/docs/html/types/FetchTranslationsFunction.html +1 -1
  21. package/docs/html/types/LoadModuleFunction.html +1 -1
  22. package/docs/html/variables/LOCALE_STORAGE_KEY.html +1 -0
  23. package/docs/markdown/README.md +1 -1
  24. package/docs/markdown/classes/I18nService.md +5 -5
  25. package/docs/markdown/classes/LanguageSelectorService.md +7 -7
  26. package/docs/markdown/functions/LanguageInterceptor.md +2 -2
  27. package/docs/markdown/functions/defaultLoadModule.md +2 -2
  28. package/docs/markdown/functions/loadI18nBootstrapHook.md +2 -2
  29. package/docs/markdown/functions/loadLanguages.md +2 -2
  30. package/docs/markdown/globals.md +6 -2
  31. package/docs/markdown/type-aliases/FetchTranslationsFunction.md +2 -2
  32. package/docs/markdown/type-aliases/LoadModuleFunction.md +2 -2
  33. package/docs/markdown/variables/LOCALE_STORAGE_KEY.md +11 -0
  34. package/docs/wiki/Class.I18nService.md +4 -4
  35. package/docs/wiki/Class.LanguageSelectorService.md +6 -6
  36. package/docs/wiki/Function.LanguageInterceptor.md +1 -1
  37. package/docs/wiki/Function.defaultLoadModule.md +1 -1
  38. package/docs/wiki/Function.loadI18nBootstrapHook.md +1 -1
  39. package/docs/wiki/Function.loadLanguages.md +1 -1
  40. package/docs/wiki/TypeAlias.FetchTranslationsFunction.md +1 -1
  41. package/docs/wiki/TypeAlias.LoadModuleFunction.md +1 -1
  42. package/docs/wiki/Variable.LOCALE_STORAGE_KEY.md +7 -0
  43. package/docs/wiki/_Sidebar.md +4 -0
  44. package/docs/wiki/globals.md +5 -1
  45. package/fesm2022/rxap-ngx-localize.mjs +11 -9
  46. package/fesm2022/rxap-ngx-localize.mjs.map +1 -1
  47. package/index.d.ts +1 -0
  48. package/lib/const.d.ts +1 -0
  49. 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(&quot;locale&quot;) || navigator.language.split(&#x27;-&#x27;)[0] || &#x27;en&#x27;</code>
294
+ <code>localStorage.getItem(LOCALE_STORAGE_KEY) || navigator.language || &#x27;en&#x27;</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?.map((l) &#x3D;&gt; l.split(&#x27;-&#x27;)[0]) ?? []</code>
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>&nbsp;&nbsp;&nbsp;(src/.../const.ts)</a>
116
+ </li>
114
117
  <li>
115
118
  <a href="#schematic" title="src/generators/init/index.ts" ><b>schematic</b>&nbsp;&nbsp;&nbsp;(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>&#x27;locale&#x27;</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">
@@ -102,7 +102,7 @@
102
102
  </ol>
103
103
  <ul class="properties-list">
104
104
  <li>
105
- <b>Version</b> : 19.1.1</li>
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>