Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep translations in separate file? #1

Open
ralyodio opened this issue Jul 22, 2018 · 3 comments
Open

keep translations in separate file? #1

ralyodio opened this issue Jul 22, 2018 · 3 comments

Comments

@ralyodio
Copy link

Is it possible to have an en.js and a de.js file for English and German translations?

@kenberkeley
Copy link
Collaborator

if that so, use vue-i18n instead

@ralyodio
Copy link
Author

I'm not using vue. its vanilla js.

@kenberkeley
Copy link
Collaborator

kenberkeley commented Jul 22, 2018

of course you can separate the locales

import xxxEn from 'en.js'
import xxxDe from 'de.js'

console.log(
  t(xxxDe.yyy, xxxEn.yyy)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants