pptx-angular-viewer 1.1.55 → 1.1.57

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 CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project are documented here.
4
4
  This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
5
5
  by [git-cliff](https://git-cliff.org); do not edit it by hand.
6
6
 
7
+ ## [1.1.56](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.1.56) - 2026-07-02
8
+
9
+ ### Features
10
+
11
+ - **shared:** Add canonical i18n translation dictionary (by @ChristopherVR) ([429e386](https://github.com/ChristopherVR/pptx-viewer/commit/429e386c7245fc5cf526ac72481fd5ab23b3e09d))
12
+ - **angular:** Wire ngx-translate, convert hardcoded UI strings to translation keys (by @ChristopherVR) ([33bc42e](https://github.com/ChristopherVR/pptx-viewer/commit/33bc42e0f221a8c8644f1cc80cc314971abc9791))
13
+
7
14
  ## [1.1.54](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-angular-viewer@1.1.54) - 2026-07-02
8
15
 
9
16
  ### Features
package/README.md CHANGED
@@ -161,6 +161,23 @@ async save() {
161
161
  `LoadContentService`, `provideViewerTheme`, `VIEWER_THEME`, and the
162
162
  `ViewerTheme` / `CanvasSize` / `CollaborationConfig` types.
163
163
 
164
+ ## Localization (i18n)
165
+
166
+ UI labels go through [@ngx-translate/core](https://github.com/ngx-translate/core) with dotted keys such as `pptx.statusBar.allSaved`. Provide it with `provideTranslateService()` (the demo's `src/i18n.ts` shows a minimal config, including a `MissingTranslationHandler` that derives Title Case labels for any key you don't explicitly translate):
167
+
168
+ ```ts
169
+ import { translationsEn, keyToLabel } from 'pptx-angular-viewer';
170
+ import { inject } from '@angular/core';
171
+ import { TranslateService } from '@ngx-translate/core';
172
+
173
+ // register the English dictionary, e.g. in your root component
174
+ inject(TranslateService).setTranslation('en', translationsEn);
175
+ // later, to switch:
176
+ inject(TranslateService).use('fr');
177
+ ```
178
+
179
+ Unlike React/Vue, `translationsEn`, `keyToLabel`, and the `TranslationKey` type (for type-checking a new locale dictionary as `Record<TranslationKey, string>`) are exported from the package **root**, not an `/i18n` subpath. See the [Localization guide](https://christophervr.github.io/pptx-viewer/guide/localization) for the full picture across all three bindings and how to contribute a translation upstream; the live demo's language picker is a working reference.
180
+
164
181
  ## Limitations
165
182
 
166
183
  The Angular package has reached functional parity with the React package: all 11