Page 1 of 1

Expose the mapping of identical localised characters to mods

Posted: Tue Jul 29, 2025 9:29 am
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.

Re: Expose the mapping of identical localised characters to mods

Posted: Fri Sep 12, 2025 1:45 pm
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.