You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My personal favorite solution would be to be able to define this in the VS Code Settings (User, Folder or Workspace) and not have to do this every time I open a preview.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered:
RandomFractals
changed the title
Setting timeFormatLocale and formatLocale
add date and numbers extension formatting seetings for rendered and exported vega charts
Jan 27, 2020
@RandomFractals Yes, to only specify the locale in the VS Code settings (User, Folder or Workspace) is my preferred solution. Personally, I do not need to specify each property of the locale settings (e.g. decimal or thousands) individually, only specifying "de-DE" would be the easiest form me. I think it should be ok, to specify only one locale which is used for both vega-lite settings (formatLocale, timeFormatLocale), but specifying both is perhaps easier to implement.
I did not find the ability to specify the locale in the vega specs (e.g. in the json file). If it is possible, can you give me a URL to the vega-lite documentation?
ok. I'll just add locales for numbers and date formatting to this extension Settings then. You will be able to set them in User settings for all Vega renders, or Workspace settings for a poject.
I had a brief chat with @domoritz from Vega team and he preferred this simple solution to configure it too.
I'll dig into Vega api to see if there is a way to do it by locale name, rather than fine settings you outlined originally to keep it simple.
Is it possible to set
timeFormatLocale
andformatLocale
to non-default values for the preview and when exporting images?This is supported by Vega and Vega-Lite:
E.g I would like to see a preview and export an SVG image in the German locale:
My personal favorite solution would be to be able to define this in the VS Code Settings (User, Folder or Workspace) and not have to do this every time I open a preview.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered: