python-fluent icon indicating copy to clipboard operation
python-fluent copied to clipboard

runtime: add attribute formatting functionality in FluentLocalization

Open loudblow opened this issue 4 weeks ago • 2 comments

Resolving issue with accessing message attributes via FluentLocalization.format_value("message.attribute")

Connected issues: https://github.com/projectfluent/python-fluent/issues/209

loudblow avatar Nov 26 '25 05:11 loudblow

Sounds fair enough, I'll try to implement that soon. Anyway, I think that added functionality could be added too (with tests and docs, of course). According to the function name it should format any kind of values, even it is an attribute of a message, because attributes also have their own values.

loudblow avatar Nov 27 '25 13:11 loudblow

According to the function name it should format any kind of values, even it is an attribute of a message, because attributes also have their own values.

Never mind. Pattern resolving works not as I thought, so I refuse the idea. Just will implement what you've mentioned above

loudblow avatar Nov 27 '25 15:11 loudblow