Thanks to visit codestin.com
Credit goes to github.com

Skip to content

longer text in pseudo-localizationย #925

@wbolster

Description

@wbolster

Clear and concise description of the problem

thanks for this very useful package!

the new devtools + pseudo-localization switch are really cool, and would be even cooler ๐Ÿ˜‰ when the length of the text could be adjusted, e.g. +30% or a configurable amount.

Suggested solution

a devtools switch or other control (slider, input, whatever) controlling a feature to artificially make text longer in pseudolocalization.

i'd suggest simply appending underscore (_) characters at the end of each word, which count as โ€˜wordโ€™ characters and will not be affected by css line-wrapping etc. the definition of โ€˜wordโ€™ is vague and language-specific (and Intl.Segmenter is overkill and not widely supported), but runs of โ€˜wordโ€™ characters (\w in RegExp) would likely suffice for this use case.

example: this is a test message would become something like this_ is_ a test_ message__

Alternative

No response

Additional context

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions