fix: fixed available locale list (#603)

This commit is contained in:
Anurag Hazra
2020-10-31 14:50:46 +05:30
committed by GitHub
parent ff9cf1317f
commit 10d8ca6a38
5 changed files with 12 additions and 11 deletions
-7
View File
@@ -188,12 +188,6 @@ class CustomError extends Error {
static USER_NOT_FOUND = "USER_NOT_FOUND";
}
function isLocaleAvailable(locale) {
return ["cn", "de", "en", "es", "fr", "it", "ja", "kr", "pt-br"].includes(
locale.toLowerCase(),
);
}
module.exports = {
renderError,
kFormatter,
@@ -207,7 +201,6 @@ module.exports = {
getCardColors,
clampValue,
wrapTextMultiline,
isLocaleAvailable,
logger,
CONSTANTS,
CustomError,