
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
angular-phrase
Advanced tools
Use angular-translate with the powerful PhraseApp In-Context-Editor for easy translation management in AngularJS applications
angular-phrase is an addon for angular-translate that lets you connect localized AngularJS applications to the Phrase In-Context Editor.
To use angular-phrase with your application you have to:
E-Mail: demo@phraseapp.com
Password: phrase
http://angular-phrase-demo.herokuapp.com/
(Find the source code for the demo on GitHub: angular-phrase-demo
npm install angular-phrase
yarn add angular-phrase
(or download it manually from the dist
folder)
You can also build it directly from source to get the latest and greatest:
npm build
Add angular-phrase module to your existing AngularJS application after loading the angular-translate
module:
const myApp = angular.module("myApp", ['pascalprecht.translate', 'phrase'])
Configure the module:
myApp.value("phraseProjectId", "YOUR-PROJECT-ID");
myApp.value("phraseEnabled", true);
myApp.value("phraseDecoratorPrefix", "{{__");
myApp.value("phraseDecoratorSuffix", "__}}");
You can find the Project-ID in the Project overview in the Phrase Translation Center
Add the phrase-javascript
directive within your application, usually best within the <head>
:
<phrase-javascript></phrase-javascript>
If this does not work for you, you can also integrate the JavaScript snippet manually.
Once the module is enabled it will:
override the $translate service and provide placeholders that can be picked up by the Phrase In-Context Editor
fetch the JavaScript application used to render the In-Context Editor on top of your application
If you use the angular-phrase plugin in combination with the phraseapp-in-context-editor-ruby gem or another server side technology that enables the In-Context Editor, AngularJS might have problems if you use curly braces as the decorator suffix/prefix since AngularJS thinks that youre decoratated keys are AngularJS directives (which is not the case).
You can easily solve this issue by using a different decorator syntax for your setup:
app.value("phraseDecoratorPrefix", "[[__");
app.value("phraseDecoratorSuffix", "__]]");
PhraseApp::InContextEditor.prefix = "[[__"
PhraseApp::InContextEditor.suffix = "__]]"
window.PHRASEAPP_CONFIG = {
prefix: '[[__',
suffix: "__]]"
}
This is only necessary if you're not using the phraseJavascript` directive
translate
filtertranslate
directiveQuestion? Contact us at: phrase.com/contact
Issue? use GitHub issues and share the problem
Run unit tests using Karma with webpack:
npm test
2.1.6 - 2020-07-21
FAQs
Use angular-translate with the powerful PhraseApp In-Context-Editor for easy translation management in AngularJS applications
The npm package angular-phrase receives a total of 3 weekly downloads. As such, angular-phrase popularity was classified as not popular.
We found that angular-phrase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.