The discussion revolves around issues with the locale detector in content localization, where posts were incorrectly translated into their original language or corrupted due to improper handling of language codes. RGJ reported that the locale detector received a language code wrapped in markdown (e.g., ```), causing translation errors. sam acknowledged the report, and nat confirmed a PR was open, later merging a fix that updated the prompt and moved examples out of the system prompt to improve the LLM’s behavior. RGJ noted the issue was resolved on their end after decommissioning the affected instance. The fix is now live, enhancing localization reliability. nat shared the relevant PR link for reference.
שינוי השורה האחרונה של ההנחיה ל-Your response must be a language code, and nothing else. Do not wrap your response in markdown. עזר, אבל אני מניח ש-LanguageDetector.detect צריך לנקות את התשובה קצת (אולי לאפשר רק AZaz ו-?) לפני השימוש בה.