hospitalrun-frontend | Frontend for HospitalRun | Frontend Framework library
kandi X-RAY | hospitalrun-frontend Summary
kandi X-RAY | hospitalrun-frontend Summary
React frontend for HospitalRun: free software for developing world hospitals.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hospitalrun-frontend
hospitalrun-frontend Key Features
hospitalrun-frontend Examples and Code Snippets
Community Discussions
Trending Discussions on hospitalrun-frontend
QUESTION
I'm writing acceptance tests for an Ember component which allows the user to toggle their i18n settings via a dropdown provided by the ember-select-list
package. I'm also using the ember-i18n
package for the i18n settings. The dropdown component looks like this:
ANSWER
Answered 2017-Sep-14 at 21:08So apparently my test was trying to use the German translations file (which didn't have the navigation.subnav.textReplacements
key), even though my acceptance test specified French. I verified this by running the tests in the Chrome console, putting a debugger just before the failing line, and inspecting the this.get('i18n._locale')
object's translations
attribute. I found they were all in German for some reason.
So the mystery of the missing translation elements was really masking another mystery, which is why my acceptance test is defaulting to German even after PhantomJS has selected the French i18n option. But that's a topic for another post.
QUESTION
I have a simple, bare-bones integration test for a component which depends on an i18n
service (which the test injects). The component itself is a simple select dropdown from ember-select-list
, with a default value of Select Language
. Here's the test:
ANSWER
Answered 2017-Jul-19 at 13:57It filters module names, not file names. You have dash inside a filter string. Remove it and use space instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hospitalrun-frontend
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page