0.0.9 • Published 6 years ago

ember-fingerprint-translations v0.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Ember Finger Print translations

This addon builds a map of fingerprinted translation files.

It's usefull when dynamically sideloading translations from the /public folder

Assuming that you already have a translation fetcher service with the following API

Assuming that you have the following translation file:

/public/translations/en/upgrade/errors.json

{
  "4012": "Wrong credentials"
}

And a translation fetcher service with an API that look like this:

translationService.fetch('upgrade.errors');-
// Fetch the translation located at `/translations/${i18n.get('locale')}/upgrade/errors.json`

You can use the TranslationMap service provided by this plugin to find the fingerprinted path associated to this asset.

Fetching Translations Live

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago