mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
118 lines
5.0 KiB
TypeScript
118 lines
5.0 KiB
TypeScript
import { LOCALES, LocaleAlias, localeAliases } from "./core/i18n/locales.js";
|
|
import { TranslationParams } from "./core/i18n/params.generated.js";
|
|
import { FlatTranslations, Locale, TranslationKey, Translations } from "./core/i18n/params.js";
|
|
import { GetBrowserTranslationsOptions, getBrowserTranslations, resetBrowserTranslationCacheForTesting, resolveBrowserTranslationTarget, shouldAttemptBrowserTranslation } from "./core/i18n/browser-translation.js";
|
|
import { loadLocale } from "./core/i18n/load-locale.js";
|
|
import { flattenTranslations } from "./core/i18n/utils/flatten.js";
|
|
import { Text, TextParams, isText } from "./core/i18n/text.js";
|
|
import "./core/i18n/utils/index.js";
|
|
import { findLocaleKeys, getCanonicalLocaleKey, getI18nTranslations, hasRegisteredLocale, onI18nRegistryChange, registerI18n, resetI18nRegistry } from "./core/i18n/registry.js";
|
|
import { resolveText } from "./core/i18n/resolve-text.js";
|
|
import { TranslationOptions, Translator, createTranslator } from "./core/i18n/translator.js";
|
|
import { resolveTranslation } from "./core/i18n/resolve-translation.js";
|
|
import { translateText } from "./core/i18n/translate-text.js";
|
|
//#region src/core/i18n/index.d.ts
|
|
declare const translations: {
|
|
readonly buttons: {
|
|
readonly play: 'Play';
|
|
readonly pause: 'Pause';
|
|
readonly replay: 'Replay';
|
|
readonly mute: 'Mute';
|
|
readonly unmute: 'Unmute';
|
|
};
|
|
readonly seek: {
|
|
readonly forward: 'Seek forward {seconds} seconds';
|
|
readonly backward: 'Seek backward {seconds} seconds';
|
|
};
|
|
readonly fullscreen: {
|
|
readonly enter: 'Enter fullscreen';
|
|
readonly exit: 'Exit fullscreen';
|
|
};
|
|
readonly captions: {
|
|
readonly enable: 'Enable captions';
|
|
readonly disable: 'Disable captions';
|
|
};
|
|
readonly pip: {
|
|
readonly enter: 'Enter picture-in-picture';
|
|
readonly exit: 'Exit picture-in-picture';
|
|
};
|
|
readonly live: {
|
|
readonly playing: 'Playing live';
|
|
readonly seekToEdge: 'Seek to live edge';
|
|
readonly badge: 'Live';
|
|
};
|
|
readonly cast: {
|
|
readonly start: 'Start casting';
|
|
readonly stop: 'Stop casting';
|
|
readonly connecting: 'Connecting';
|
|
};
|
|
readonly airplay: {
|
|
readonly start: 'Start AirPlay';
|
|
readonly stop: 'Stop AirPlay';
|
|
};
|
|
readonly slider: {
|
|
readonly seek: 'Seek';
|
|
};
|
|
readonly time: {
|
|
readonly current: 'Current time';
|
|
readonly duration: 'Duration';
|
|
readonly remaining: 'Remaining';
|
|
readonly remainingSuffix: '{duration} remaining';
|
|
readonly showElapsed: '{duration}. Show elapsed time.';
|
|
readonly showDuration: '{duration}. Show duration.';
|
|
readonly showRemaining: '{duration}. Show remaining time.';
|
|
readonly position: '{current} of {duration}';
|
|
};
|
|
readonly playback: {
|
|
readonly rate: 'Playback rate {rate}';
|
|
};
|
|
readonly volume: {
|
|
readonly mutedValue: '{percent}, muted';
|
|
readonly muted: 'Muted';
|
|
readonly label: 'Volume';
|
|
readonly value: 'Volume {value}';
|
|
};
|
|
readonly status: {
|
|
readonly captionsOn: 'Captions on';
|
|
readonly captionsOff: 'Captions off';
|
|
readonly paused: 'Paused';
|
|
readonly playing: 'Playing';
|
|
readonly fullscreen: 'Fullscreen';
|
|
readonly pip: 'Picture in picture';
|
|
readonly exitPip: 'Exit picture in picture';
|
|
readonly seekedTo: 'Seeked to {time}';
|
|
};
|
|
readonly container: {
|
|
readonly label: 'Media player';
|
|
};
|
|
readonly errors: {
|
|
readonly aborted: 'You stopped media playback before it finished.';
|
|
readonly network: 'This media could not be loaded due to a network or server issue.';
|
|
readonly decode: 'This media could not be played. It may be corrupted, or your browser may not support its format.';
|
|
readonly source: 'This media could not be loaded. It may be unavailable, or your browser may not support its format.';
|
|
readonly encrypted: 'This media could not be played because it could not be decrypted.';
|
|
readonly title: 'Something went wrong.';
|
|
readonly unexpected: 'An unexpected error occurred.';
|
|
};
|
|
readonly common: {
|
|
readonly empty: '';
|
|
readonly ok: 'OK';
|
|
};
|
|
readonly menu: {
|
|
readonly settings: 'Settings';
|
|
readonly quality: 'Quality';
|
|
readonly audio: 'Audio';
|
|
readonly default: 'Default';
|
|
readonly speed: 'Speed';
|
|
readonly captions: 'Captions';
|
|
readonly playbackRate: 'Playback rate';
|
|
readonly back: 'Back';
|
|
readonly off: 'Off';
|
|
readonly auto: 'Auto';
|
|
readonly autoWithLabel: 'Auto ({label})';
|
|
readonly subtitles: 'Subtitles';
|
|
};
|
|
};
|
|
//#endregion
|
|
export { type FlatTranslations, type GetBrowserTranslationsOptions, LOCALES, type Locale, type LocaleAlias, type Text, type TextParams, type TranslationKey, type TranslationOptions, type TranslationParams, type Translations, type Translator, createTranslator, findLocaleKeys, flattenTranslations, getBrowserTranslations, getCanonicalLocaleKey, getI18nTranslations, hasRegisteredLocale, isText, loadLocale, localeAliases, onI18nRegistryChange, registerI18n, resetBrowserTranslationCacheForTesting, resetI18nRegistry, resolveBrowserTranslationTarget, resolveText, resolveTranslation, shouldAttemptBrowserTranslation, translateText, translations };
|
|
//# sourceMappingURL=i18n.d.ts.map
|