Hi!
I have implemented Fluent in my Python/Kivy app. I thought it worked fine, but now it seems to ignore when I change locales. Here is the (global) initialization in my Python app:
from fluent.runtime import FluentLocalization, FluentResourceLoader
loader = FluentResourceLoader(“languages/{locale}”)
language = FluentLocalization([“en”, “es”, “da”], [“main.ftl”], loader)
Later the user can change the selection, for instance like this:
language.locales = [‘da’,‘en’,‘es’]
AFTER that change, I instantiate a class that uses this in init:
self.label_text = language.format_value("train-ideogram-label")
So why does that result in the string from “en” and not the one from “da”?