MobileSendPopup trans
This commit is contained in:
@@ -346,5 +346,6 @@
|
||||
"SHOP NEW": "(need for transfer)SHOP NEW",
|
||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||
"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",
|
||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||
"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",
|
||||
"SORRY, NO RESULTS MATCHING YOUR SEARCH": "(need for transfer)SORRY, NO RESULTS MATCHING YOUR SEARCH",
|
||||
"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 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") {
|
||||
return 11;
|
||||
} else if (_deviceCountryCode === "KR") {
|
||||
return 12;
|
||||
} else return 10;
|
||||
};
|
||||
},[]);
|
||||
|
||||
const handleClickSelect = (_phoneNumber) => {
|
||||
setKeyPadOff((state) => !state);
|
||||
@@ -394,11 +392,7 @@ export default function MobileSendPopUp({
|
||||
kind="exitPopup"
|
||||
open={true}
|
||||
hasText
|
||||
text={
|
||||
DIGITS_NOTICE_STR1 +
|
||||
getMaxNum(deviceCountryCode) +
|
||||
DIGITS_NOTICE_STR2
|
||||
}
|
||||
text={$L("Only {length} digits is permitted. Please check again").replace('{length}', getMaxNum(deviceCountryCode))}
|
||||
onClick={_onClose}
|
||||
hasButton
|
||||
button1Text={$L("OK")}
|
||||
|
||||
Reference in New Issue
Block a user