Closed m-mohr closed 3 years ago
So, we'll have a lot of code switches soon and we always have the same 3 languages, so to each CodeSwitcher we need to pass:
:languages="{py:'Python', r:'R', js:'JavaScript'}"
That is very repetitive. Is there a way to avoid that and set them globally? For example, through setting them in the plugin config? So instead of 'code-switcher' use ['code-switcher', {py:'Python', r:'R', js:'JavaScript'}]?
'code-switcher'
['code-switcher', {py:'Python', r:'R', js:'JavaScript'}]
That's a good idea. I don't know if I have much time at the moment, but I'll give something like this a try soon
So, we'll have a lot of code switches soon and we always have the same 3 languages, so to each CodeSwitcher we need to pass:
:languages="{py:'Python', r:'R', js:'JavaScript'}"
That is very repetitive. Is there a way to avoid that and set them globally? For example, through setting them in the plugin config? So instead of
'code-switcher'
use['code-switcher', {py:'Python', r:'R', js:'JavaScript'}]
?