Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ab-translate

Package Overview
Dependencies
Maintainers
1
Versions
600
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ab-translate - npm Package Compare versions

Comparing version 1.1.16 to 1.1.17

2

package.json
{
"private": false,
"name": "ab-translate",
"version": "1.1.16",
"version": "1.1.17",
"author": {

@@ -6,0 +6,0 @@ "name": "Yair Haimovitch",

@@ -39,3 +39,3 @@ # ab-translate

### Wix Grunt (old stack)
1. Install the package `npm i ab-translate --save`
1. Install the package `bower install ab-translate --save`
2. Configure the specs defaults in your local `Gruntfile.js` file:

@@ -52,7 +52,7 @@ ```javascript

```html
<script src="bower_components/ab-translate.git/abTranslate.angular-runtime.bundle.min.js"></script>
<script src="bower_components/ab-translate/abTranslate.angular-runtime.bundle.min.js"></script>
```
4. Transform the translations using the `abTranslateProvider` and the project's `experimentManagerProvider` ([example](https://github.com/wix-private/site-generator-statics-consumer/blob/15d0f98603a575b5eda742ede781cf63f791f04b/app/scripts/app.ts#L80)). *Notice:* make sure that you conduct the experiments for the scope in step #2
```javascript
angular.module('myApp', [])
angular.module('myApp', ['wix.ab-translate'])
.config(function($translateProvider, abTranslateProvider, experimentManagerProvider) {

@@ -59,0 +59,0 @@ const preferredLanguage = $translateProvider.preferredLanguage();

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc