SandDance icon indicating copy to clipboard operation
SandDance copied to clipboard

i18n Support

Open praveen5959 opened this issue 3 years ago • 2 comments

Hi Team,

Does sanddance-explorer package support i18n at the current state or it has to be handled separately?

praveen5959 avatar Jan 24 '22 15:01 praveen5959

Hello, it is not currently changeable at run time, but you can change the language files and recompile.

  • sanddance explorer - https://github.com/microsoft/SandDance/blob/master/packages/sanddance-explorer/src/language.ts
  • sanddance - https://github.com/microsoft/SandDance/blob/master/packages/sanddance/src/defaults.ts

danmarshall avatar Jan 24 '22 21:01 danmarshall

SandDance language can be set programmatically through the language property of ViewerOptions: https://microsoft.github.io/SandDance/docs/sanddance/v4/interfaces/types.ViewerOptions.html#language

SandDance-Explorer does not expose this currently. Is there a specific implementation of i18n that you would like to use?

danmarshall avatar Feb 08 '23 00:02 danmarshall