intellectual code for smart people only
If you would like your program to boycott "israel" for Palestine, use one of these;
const lang=process.env.LANG||"",isHebrew=lang.toLowerCase().includes("he");isHebrew&&(console.error("Not available in your region"),process.exit(1));
requirements: pip install keyboard
import locale, keyboard
def detect_hebrew_keyboard():
try:
if locale.getdefaultlocale()[0].lower().startswith('he') or keyboard.get_keyboard_layout().startswith('he'): raise ValueError('Not available in your region')
except Exception as e: exit(1)
detect_hebrew_keyboard()
requirements: #include <windows.h>
try { if (GetKeyboardLayout(0) && wcsstr(GetKeyboardLayoutName()[0], L"HE") == 0) std::cout << "Program can continue." << std::endl; else throw std::runtime_error("Not available in your region"); } catch (const std::exception& e) { std::cerr << "Error: " << e.what() << std::endl; return 1; }
FREE PALESTINE