Can I localize meteor core strings somehow?


#1

I’m working on the non-english app. What I’m looking for is a solution to change the account-server.js hardcoded strings to local language. My last try (just manual change) finished with unrunnable meteor install (what is strange itself btw).

So, is there any “proper” way to get meteor core strings localized ?


#2

You can’t. You’ll have to write up the login flow yourself


#3

Most production ready accounts UI packages let you configure the strings. For example useraccounts. Read the meteor guide for more info.


#4

I am talking about[ these ] (https://github.com/meteor/meteor/blob/master/packages/accounts-base/accounts_server.js#L1257) strings.

Using [this] (https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3) package does not help even it has build in localization.


#5

Interesting, didn’t know that was the case. I feel like apps/packages should never print error messages from the server directly, since then you need to do localization on the client and server…


#6

They should be taken out of the code, at least.


#7

I disagree, I think the accounts UI packages should have hooks to replace them.