Skip to content

Conversation

@alesgenova
Copy link
Member

No description provided.

@alesgenova alesgenova requested a review from jourdain January 11, 2024 21:48
@alesgenova alesgenova force-pushed the fix-change-translator branch from 0287063 to 8395086 Compare January 12, 2024 19:22
assert b_translator.translate_key("bar") == "b_bar"
assert b_translator.reverse_translate_key("b_foo") == "foo"
assert b_translator.reverse_translate_key("b_bar") == "bar"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you test a translator that has prefix+custom-translation?

# Execute state listeners
self._state_listeners.add_all(_keys)

pushed_state = self.translator.reverse_translate_dict(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translated_state = ...

@Justineantoine Justineantoine force-pushed the fix-change-translator branch 3 times, most recently from 859f7d6 to 4dc096c Compare October 3, 2025 14:21
@Justineantoine
Copy link
Collaborator

I added the translator when registering the callbacks. If the callback is registered by a child server, the main server needs to know how to translate the keys.

@jourdain
Copy link
Collaborator

jourdain commented Oct 6, 2025

is that ok to merge or are you planning to add more tests/or-else?

@Justineantoine
Copy link
Collaborator

OK to merge

@jourdain jourdain merged commit 92f7c67 into master Oct 6, 2025
5 checks passed
@jourdain jourdain deleted the fix-change-translator branch October 6, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants