MobileSendPopup trans

This commit is contained in:
yonghyon
2024-05-13 18:38:06 +09:00
parent d4bae5f7ef
commit 428432ed67
4 changed files with 9 additions and 12 deletions

View File

@@ -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"
}

View File

@@ -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"
}

View File

@@ -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} цифр. Пожалуйста, повторите попытку."
}

View File

@@ -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")}