1 | 'use strict';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | let path = require('path');
|
8 |
|
9 | module.exports = {
|
10 | description: 'Setup ember-intl',
|
11 |
|
12 | normalizeEntityName() {},
|
13 |
|
14 | fileMapTokens() {
|
15 | return {
|
16 | __app__(options) {
|
17 | if (options.inAddon) {
|
18 | return path.join('tests', 'dummy', 'app');
|
19 | } else {
|
20 | return path.join('app');
|
21 | }
|
22 | },
|
23 | __config__(options) {
|
24 | if (options.inAddon) {
|
25 | return path.join('tests', 'dummy', 'config');
|
26 | } else {
|
27 | return path.join('config');
|
28 | }
|
29 | },
|
30 | };
|
31 | },
|
32 |
|
33 | afterInstall() {
|
34 | this.ui.writeLine(
|
35 | "[ember-intl] Don't forget to setup your application-wide locale. " +
|
36 | 'Documentation: https://github.com/ember-intl/ember-intl#setting-locale'
|
37 | );
|
38 | },
|
39 | };
|