• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

panter / vue-i18next / 47
98%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/examples/perf/ws-6.2.2
DEFAULT BRANCH: master
Ran 22 May 2017 07:44AM UTC
Jobs 1
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
47

push

travis-ci

claudiocro
feat(namespace): introduce namespaces

The namespace will be loaded with (loadNamespaces)[http://i18next.com/docs/api/#load-namespaces],so one can lazy load namespaces for components.

``` javascript
const locales = {
  en: {
    tos: 'Term of Service',
    term: 'I accept {{0}}. {{1}}.',
    promise: 'I promise',
  }
};

i18next.init({
  lng: 'en',
  fallbackLng: 'en',
  resources: {
    en: { common: locales.en },
  },
});

const i18n = new VueI18next(i18next);

Vue.component('app', {
  i18nOptions: { namespaces: 'common'},
  template: `
    <div>
      <i18next path="term" tag="label">
        <a href="#" target="_blank">{{ $t("tos") }}</a>
        <strong>{{ $t("promise") }}</strong>
      </i18next>
    </div>`,
});
```

35 of 36 branches covered (97.22%)

Branch coverage included in aggregate %.

56 of 57 relevant lines covered (98.25%)

19.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47.1 22 May 2017 07:44AM UTC 0
97.85
Travis Job 47.1
Source Files on build 47
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #47
  • 36823168 on github
  • Prev Build on features/namespaces (#46)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc