forked from fbsamples/original-coast-clothing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.config.js
43 lines (40 loc) · 854 Bytes
/
i18n.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Copyright 2019-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Messenger For Original Coast Clothing
* https://developers.facebook.com/docs/messenger-platform/getting-started/sample-apps/original-coast-clothing
*/
const i18n = require("i18n"),
path = require("path");
i18n.configure({
locales: [
"en_US",
"fr_FR",
"es_ES",
"es_LA",
"pt_BR",
"id_ID",
"ar_AR",
"de_DE",
"it_IT",
"ja_JP",
"ko_KR",
"ru_RU",
"th_TH",
"vi_VN",
"zh_CN",
"zh_HK",
"zh_TW"
],
defaultLocale: "en_US",
directory: path.join(__dirname, "locales"),
objectNotation: true,
api: {
__: "translate",
__n: "translateN"
}
});
module.exports = i18n;