from translation_module import get_translation text = "Hello. I am Sage 6.5. I can consult the Oracle for your Name, a specific Topic, or a specific Date. How shall I assist you?" languages = { "German": "de", "French": "fr", "Spanish": "es", "Italian": "it", "Portuguese": "pt", "Russian": "ru", "Japanese": "ja", "Chinese": "zh-CN" } print("STATIC_WELCOME = {") print(f' "English": "{text}",') cache = {} for lang_name, lang_code in languages.items(): try: # Use simple mapper logic from module or just force correct code if lang_name == "Chinese": lang_code = "zh-CN" # We need to simulate the module's behavior or just call get_translation # get_translation expects language NAME not code for the cache key, but uses map internally # Let's simple use the internal logic: res = get_translation(text, lang_name, cache) print(f' "{lang_name}": "{res}",') except Exception as e: print(f' "{lang_name}": "ERROR: {e}",') print("}")