mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-11 17:29:14 +02:00
feat: Add French localization file with comprehensive translations for the application UI.
This commit is contained in:
1 parent
86aae8f628
commit
e7875f35a7
2 files changed
+3
-15
No files matched your search
@@ -163,7 +163,7 @@ class BrowserlessService:
|
||||
|
||||
options = {
|
||||
"viewport": {"width": 1920, "height": 1080},
|
||||
"user_agent": user_agent,
|
||||
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
|
||||
"locale": "fr-FR",
|
||||
"timezone_id": "Europe/Paris",
|
||||
"java_script_enabled": True,
|
||||
@@ -173,19 +173,6 @@ class BrowserlessService:
|
||||
"Sec-Ch-Ua-Platform": '"Windows"',
|
||||
"Upgrade-Insecure-Requests": "1",
|
||||
},
|
||||
}
|
||||
|
||||
if use_proxy:
|
||||
logger.info("Proxy support requested (not implemented in this version)")
|
||||
|
||||
context = await browser.new_context(**options)
|
||||
await context.route("**/*", lambda route: route.continue_())
|
||||
|
||||
return context
|
||||
|
||||
@staticmethod
|
||||
async def _navigate_and_wait(page: Page, url: str, timeout: int):
|
||||
"""Navigate to URL and wait for page load."""
|
||||
logger.info(f"📡 Navigating to {url} (Timeout: {timeout}ms)")
|
||||
try:
|
||||
await page.goto(url, wait_until="domcontentloaded", timeout=timeout)
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
"targetPrice": "Prix cible",
|
||||
"targetPricePlaceholder": "ex: 999.99",
|
||||
"targetPriceOptional": "(optionnel)",
|
||||
"category": "Catégorie",
|
||||
"selector": "Sélecteur CSS",
|
||||
"selectorPlaceholder": "ex: .price",
|
||||
"selectorOptional": "(optionnel - pour les pages complexes)",
|
||||
@@ -193,4 +194,4 @@
|
||||
"jobConfigUpdated": "Configuration de la tâche mise à jour",
|
||||
"openrouterError": "Erreur lors du chargement des modèles OpenRouter"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user