@pptx-editor.dev/i18n
v0.9.1
Published
Shared user-facing strings for the PPTX Editor chrome. English is the source of truth.
Readme
@pptx-editor.dev/i18n
Shared user-facing strings for the PPTX Editor chrome. en.json is the source of truth. Other locales mirror its shape; a null value falls back to English.
Install
The React and Vue adapters install this package for you. Install it yourself only when you import a catalog or a type from it directly:
npm install @pptx-editor.dev/i18nUse
import { createTranslator } from '@pptx-editor.dev/i18n';
const t = createTranslator();
t('toolbar.bold'); // "Bold (Ctrl+B)"
t('rail.slideLabel', { index: 3 }); // "Slide 3"Packaged catalogs
@pptx-editor.dev/i18n/ja (Japanese), @pptx-editor.dev/i18n/ko (Korean), and @pptx-editor.dev/i18n/zh-CN (Simplified Chinese) are packaged catalogs. A null value shows English.
import ja from '@pptx-editor.dev/i18n/ja';
const t = createTranslator(ja);
t('toolbar.bold'); // "太字 (Ctrl+B)"