ab-translate
Advanced tools
Comparing version 1.1.16 to 1.1.17
{ | ||
"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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3014151