cibernox / svelte-intl-precompile

I18n library for Svelte.js that analyzes your keys at build time for max performance and minimal footprint
https://svelte-intl-precompile.com
ISC License
274 stars 13 forks source link

Use javascript object file example #42

Closed gzimbron closed 2 years ago

gzimbron commented 2 years ago

How can i use js file instead .json ?

I'm trying use es.js but it doesn't work,

es.js (not working)

const example = {
  hola: 'Hola', 
};
export { example };

es.json (working):

{
   "hola": "Hola"
}
gzimbron commented 2 years ago

Solved upgrading to 0.8.0