@danhachuel/thunderbolt 0.2.99 → 0.2.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/main.py +6 -2
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -38,6 +38,7 @@ from hermes_ui.music import list_music_files, materialize_suno_audio, request_su
|
|
|
38
38
|
from hermes_ui.media_downloader import AUDIO_FORMATS, VIDEO_CONTAINERS, VIDEO_QUALITY_OPTIONS, MediaDownloadError, build_download_options, clear_media_download_history, dependency_status, download_media, list_media_downloads, media_download_file
|
|
39
39
|
from hermes_ui.notifications import clear_notifications, list_notifications, mark_all_notifications_read, mark_notification_read, notification_event_catalog, notification_preferences, record_notification, reconcile_persisted_notifications, save_notification_preferences, unread_notification_count
|
|
40
40
|
from hermes_ui.languages import LANGUAGE_CODES, LANGUAGE_FLAG_DATA_URIS, language_code, language_label, ui_language_menu_label, ui_text, video_language_label, video_language_options
|
|
41
|
+
|
|
41
42
|
from hermes_ui.script_documents import list_script_documents, read_script_document, save_script_document, script_storage_path
|
|
42
43
|
from hermes_ui.script_generation import generate_script_document
|
|
43
44
|
from hermes_ui.voice_preview import DEFAULT_SAMPLE, load_preview_file, synthesize_preview
|
|
@@ -55,6 +56,8 @@ from integrations.local_runtime import MoneyPrinterRuntime
|
|
|
55
56
|
from integrations.moneyprinter_config import sync_moneyprinter_config
|
|
56
57
|
from integrations.openai_model_discovery import DEFAULT_NVIDIA_NIM_BASE_URL, ModelDiscoveryError, fetch_openai_compatible_models
|
|
57
58
|
|
|
59
|
+
DEFAULT_UI_LANGUAGE = "en"
|
|
60
|
+
|
|
58
61
|
AI_STYLE_OPTIONS = [
|
|
59
62
|
"Natural Realista",
|
|
60
63
|
"Cocomelon style",
|
|
@@ -229,8 +232,9 @@ def current_ui_language() -> str:
|
|
|
229
232
|
if requested:
|
|
230
233
|
normalized = language_code(requested)
|
|
231
234
|
else:
|
|
232
|
-
|
|
233
|
-
|
|
235
|
+
# A raiz do launcher é o idioma padrão do sistema. A mudança explícita
|
|
236
|
+
# de idioma continua a chegar por ?lang=..., incluindo a rota /en.
|
|
237
|
+
normalized = DEFAULT_UI_LANGUAGE
|
|
234
238
|
st.session_state["ui_language"] = normalized
|
|
235
239
|
return normalized
|
|
236
240
|
|
package/package.json
CHANGED