adopted-ember-addons / ember-moment

MIT License
399 stars 122 forks source link

Ignores locale on fastboot server #262

Open medokin opened 6 years ago

medokin commented 6 years ago

Fastboot renders always in en, and ignores language setting. It changes back on client render.

2017-10-11_16-32-41

jasonmit commented 6 years ago

What version of ember-moment and ember-cli-moment-shim are you using

medokin commented 6 years ago

Latest:

    "ember-moment": "^7.4.1",
    "ember-cli-moment-shim": "^3.5.0",

Example project reflecting the issue: https://github.com/medokin/ember-moment-issue-262

jasonmit commented 6 years ago

The behavior should be the same out of the box but you may need to explicitly configure the shim to bring in the locales https://github.com/jasonmit/ember-cli-moment-shim#i18n-support

I'll treat this as a bug and dig into why both environments are not behaving identically w/o configuration. Will just take me a few days until I can get around to it but the above may offer a work around for now.