Socket
Socket
Sign inDemoInstall

ember-fingerprint-translations

Package Overview
Dependencies
297
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-fingerprint-translations

The default blueprint for ember-cli addons.


Version published
Weekly downloads
10
increased by900%
Maintainers
3
Install size
18.7 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 29 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc