@nanostores/i18n
Version:
A tiny (≈600 bytes) i18n library for React/Preact/Vue/Svelte
15 lines (13 loc) • 342 B
TypeScript
import type { I18n } from '../create-i18n/index.js'
/**
* Return a promise until current translation loading will be finished.
*
* ```js
* import { translationsLoading } from '@nanostores/i18n'
*
* await translationsLoading(i18n)
* ```
*
* @param i18n I18n object.
*/
export function translationsLoading(i18n: I18n): Promise<void>