fix: use i18n locale for timestamp formatting instead of hardcoded fr-FR

This commit is contained in:
Nicolas Varrot
2026-02-11 14:31:32 +00:00
parent 2d3ee47854
commit 88c393ed50
2 changed files with 12 additions and 3 deletions

View File

@@ -43,6 +43,9 @@ const en = {
// Tool call
'tool.result': 'Result',
// Timestamps
'time.yesterday': 'Yesterday',
} as const;
const fr: Record<keyof typeof en, string> = {
@@ -78,6 +81,8 @@ const fr: Record<keyof typeof en, string> = {
'thinking.label': 'Réflexion',
'tool.result': 'Résultat',
'time.yesterday': 'Hier',
};
const messages: Record<string, Record<string, string>> = { en, fr };