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
This might be a noob question but is there a way to not repeat the same import over and over again, when I need to have it available in every component?
My specific use case is that I'm using an i18n library to translate texts, so it's needed pretty much everywhere.
Just so there is no confusion, I mean this:
<script>
import { t } from 'svelte-intl-precompile'
</script>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This might be a noob question but is there a way to not repeat the same import over and over again, when I need to have it available in every component?
My specific use case is that I'm using an i18n library to translate texts, so it's needed pretty much everywhere.
Just so there is no confusion, I mean this:
Thanks for any suggestions.
Beta Was this translation helpful? Give feedback.
All reactions