Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locale doesn't seem to work anymore ?

See original GitHub issue


First of all, thank you for your app 😃

It seems that since a few days (i only noticed it at the beginning of the week), the locale doesn’t seem to work anymore… I have mine to display in French (‘fr’) and it used to work fine. Maybe i’m doing something wrong ? Has anyone noticed this as well ? Instead it keeps displaying in English

What i expect : image

What i actually have : image

My power-calendar code : {{#power-calendar-range locale="fr" class="small-calendar-cell-size" center=center selected=filterService.calendarFilter onCenterChange=(action (mut center) value="date") onSelect=(action (mut filterService.calendarFilter) value="date") as |calendar|}} {{calendar.nav}} {{calendar.days}} {{/power-calendar-range}}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

llunncommented, Nov 20, 2019

I ran into this today with v0.4.1.

For those wanting to resolve this using the moment configuration option mentioned above, it appears that the correct way is to:

  1. Include the desired locales in the environment.js file as @svparijs describes here Note: You must restart your ember application for the locales to be loaded.
  2. Configure the moment service, exposed by ember-moment. Note: This is different than using the import provided by ember-cli-moment-shim.

An example of configuring the moment service goes something like this:

import Service from '@ember/service';
import { inject as service } from '@ember/service'

export default Service.extend({
  moment: service(),
  changeLocale(locale) {

      /* some other logic */
ghostcommented, Jun 11, 2019

@jillpouchain could you maybe share your fill initialiser locale file? I’m running into the same issue (afaik). If its possible @cibernox maybe add more info on how to add the translations for the dummies like me 😉.

@svparijs : I changed project since and don’t have acces to the files anymore. Sorry I can’t help =/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix my locale issue? - Ask Ubuntu
First run locale to list what locales currently defined for the current user account: $ locale LANG=C LANGUAGE= LC_CTYPE=fi_FI.
Read more >
How to fix a locale setting warning from Perl - Stack Overflow
I got a warning saying setting locale in /etc/environment is deprecated and should instead be set in /etc/default/locale . Both seems to work...
Read more >
Problem of Can't set locale; make sure $LC_* and $LANG are ...
Run dpkg-reconfigure locales as root, select the locales you want in the list (with your settings, you need en_GB and en_US.UTF-8 — I...
Read more >
How to fix locale settings in Debian squeeze - Server Fault
first: sudo apt-get purge locales. then: sudo aptitude install locales. and the famous: sudo dpkg-reconfigure locales. This rids the system of locales, ...
Read more >
Trouble Syncing Spotify Local Files? Here's How You Can Fix ...
Spotify Local Files playlist on desktop app ... Still, as user reports go, all too often, this aspect of the software doesn't seem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found