Expose the mapping of identical localised characters to mods

User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 155
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Expose the mapping of identical localised characters to mods

Post by Osmo »

FFF-436 shows factorio uses a custom mapping function to convert text to some standard representation. I'm asking for the same mapping to be exposed to mods in some way, for the same reasons it exists in the base game, mainly for searching. I imagine it should take a string (such as one returned in on_string_translated event, or the input of the user) and return another string in a standardised form, so the mod can then compare two or more strings in whatever way is necessary.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 764
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Expose the mapping of identical localised characters to mods

Post by raiguard »

Funnily enough, I actually added this the other day for my own personal use! It will be in 2.0.67 as helpers.multilingual_to_lower(input), and will not require any request translation dance.
Don't forget, you're here forever.
Post Reply

Return to “Implemented mod requests”