UNPKG

892 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Copyright 2015, Yahoo! Inc.
5 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
6 */
7let path = require('path');
8
9module.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};