PseudoMode

Pseudolocalization modes.

Coverage vs. fluent-rs's fluent-pseudo crate:

  • Accented: matches Accent (accented equivalents).

  • Bidi: matches Bidi behavior — wraps the string in RLE/PDF marks so the surrounding text engine treats it as RTL. Does NOT mirror individual characters.

  • Widened: pseudo-kt specific — expands glyphs with diacritics.

  • Hidden: pseudo-kt specific — wraps each letter in [x] to make hard-coded strings visible during testing.

  • Long: matches Long — pads with a fill character (default [!]) by a configurable factor to test UI length handling without changing glyphs.

Entries

Link copied to clipboard

Accented: replaces ASCII characters with accented equivalents. Useful for finding i18n issues.

Link copied to clipboard

Bidi: wraps the input in U+202B RLE / U+202C PDF so the surrounding text engine treats it as RTL. Does not mirror individual characters.

Link copied to clipboard

Widened: expands text with diacritic-marked glyphs to test UI layout.

Link copied to clipboard

Hidden: replaces characters with x to find hardcoded strings.

Link copied to clipboard

Long: pads the input with a filler character (default [!]) by a configurable factor (default 1.3) to test UI length handling. Matches fluent-rs's Long mode.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.