MobileSendPopup trans
This commit is contained in:
@@ -346,5 +346,6 @@
|
|||||||
"SHOP NEW": "(need for transfer)SHOP NEW",
|
"SHOP NEW": "(need for transfer)SHOP NEW",
|
||||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||||
"SHOWS": "(need for transfer)SHOWS",
|
"SHOWS": "(need for transfer)SHOWS",
|
||||||
"Send To Mobile": "(need for transfer)Send To Mobile"
|
"Send To Mobile": "(need for transfer)Send To Mobile",
|
||||||
|
"Only {length} digits is permitted. Please check again": "Nur {length} Ziffern sind erlaubt. Überprüfen Sie es noch einmal"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,5 +345,6 @@
|
|||||||
"SHOP NEW": "(need for transfer)SHOP NEW",
|
"SHOP NEW": "(need for transfer)SHOP NEW",
|
||||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||||
"SHOWS": "(need for transfer)SHOWS",
|
"SHOWS": "(need for transfer)SHOWS",
|
||||||
"Send To Mobile": "(need for transfer)Send To Mobile"
|
"Send To Mobile": "(need for transfer)Send To Mobile",
|
||||||
|
"Only {length} digits is permitted. Please check again": "Only {length} digits is permitted. Please check again"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,5 +345,6 @@
|
|||||||
"SHOP NEW": "(need for transfer)SHOP NEW",
|
"SHOP NEW": "(need for transfer)SHOP NEW",
|
||||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||||
"SHOWS": "(need for transfer)SHOWS",
|
"SHOWS": "(need for transfer)SHOWS",
|
||||||
"Send To Mobile": "(need for transfer)Send To Mobile"
|
"Send To Mobile": "(need for transfer)Send To Mobile",
|
||||||
|
"Only {length} digits is permitted. Please check again": "Допустимо только {length} цифр. Пожалуйста, повторите попытку."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,16 +62,14 @@ export default function MobileSendPopUp({
|
|||||||
);
|
);
|
||||||
const deviceCountryCode = httpHeader["X-Device-Country"];
|
const deviceCountryCode = httpHeader["X-Device-Country"];
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const DIGITS_NOTICE_STR1 = $L(`Only `);
|
|
||||||
const DIGITS_NOTICE_STR2 = $L(` digits is permitted. Please check again`);
|
|
||||||
|
|
||||||
const getMaxNum = (_deviceCountryCode) => {
|
const getMaxNum = useCallback((_deviceCountryCode) => {
|
||||||
if (_deviceCountryCode === "DE" || _deviceCountryCode === "GB") {
|
if (_deviceCountryCode === "DE" || _deviceCountryCode === "GB") {
|
||||||
return 11;
|
return 11;
|
||||||
} else if (_deviceCountryCode === "KR") {
|
} else if (_deviceCountryCode === "KR") {
|
||||||
return 12;
|
return 12;
|
||||||
} else return 10;
|
} else return 10;
|
||||||
};
|
},[]);
|
||||||
|
|
||||||
const handleClickSelect = (_phoneNumber) => {
|
const handleClickSelect = (_phoneNumber) => {
|
||||||
setKeyPadOff((state) => !state);
|
setKeyPadOff((state) => !state);
|
||||||
@@ -394,11 +392,7 @@ export default function MobileSendPopUp({
|
|||||||
kind="exitPopup"
|
kind="exitPopup"
|
||||||
open={true}
|
open={true}
|
||||||
hasText
|
hasText
|
||||||
text={
|
text={$L("Only {length} digits is permitted. Please check again").replace('{length}', getMaxNum(deviceCountryCode))}
|
||||||
DIGITS_NOTICE_STR1 +
|
|
||||||
getMaxNum(deviceCountryCode) +
|
|
||||||
DIGITS_NOTICE_STR2
|
|
||||||
}
|
|
||||||
onClick={_onClose}
|
onClick={_onClose}
|
||||||
hasButton
|
hasButton
|
||||||
button1Text={$L("OK")}
|
button1Text={$L("OK")}
|
||||||
|
|||||||
Reference in New Issue
Block a user