Replies: 1 comment 3 replies
-
One Idea I've had, at least for static strings is to use the component definition to pass localized strings and icons to components when they get registered with the design system. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So far FAST components have generally been fairly simple and developers could typically set strings on those elements directly (button titles, aria attributes, etc...). Now we are starting to see more complex UI's show up as part of components, for example the date picker component will have various flyouts that will need localized strings (even icon only buttons need accessible descriptions).
The prototype text editor has a generic "resources object" that templates can bind to
${x => x.resources["bulletButtonTooltip"]}
. That was just a quick first guess at how to do this.We should have a standard approach for how we implement this, so what should that approach be?
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions