Source code

Revision control

Copy as Markdown

Other Tools

// generated by diplomat-tool
import type { Locale } from "./Locale"
import type { LocaleFallbackIterator } from "./LocaleFallbackIterator"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* An object that runs the ICU4X locale fallback algorithm with specific configurations.
*
* See the [Rust documentation for `LocaleFallbacker`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html) for more information.
*
* See the [Rust documentation for `LocaleFallbackerWithConfig`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbackerWithConfig.html) for more information.
*/
export class LocaleFallbackerWithConfig {
get ffiValue(): pointer;
/**
* Creates an iterator from a locale with each step of fallback.
*
* See the [Rust documentation for `fallback_for`](https://docs.rs/icu/latest/icu/locale/fallback/struct.LocaleFallbacker.html#method.fallback_for) for more information.
*/
fallbackForLocale(locale: Locale): LocaleFallbackIterator;
}