Skip to content
Snippets Groups Projects
Commit 68b3629f authored by chrisgarrity's avatar chrisgarrity
Browse files

Update monitor labels on the stage when language changes

A complete rewrite of OpcodeLabels. Instead of function, it’s a class that maintains a current translator function, and updates the opcode labelFn for each opcode when a new translator function is set. Add function `getLabel` to return the object with `category` and `labelFn` based on the opcode.

Set intl.formatMessage as the translator function in MonitorList. It has access to the intl object, and wraps all monitors.
parent 92dc9e6e
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment