So you bring up a neat idea. I'm not sure which OSs support it, but OpenType does have a `locale` feature, primarily for glyph variants (ex: same codepoint, but different glyph for Chinese vs. Japanese). I'm guessing it could be abused to accomplish what you want and not require an app to adopt i18n APIs.
I'm sorry to say, but I feel very strongly about 6.01 being the least useful course I took at MIT.
[1] https://hbr.org/2020/11/how-apple-is-organized-for-innovatio...