Localize reasoning duration string
| @@ -225,7 +225,7 @@ import { | ||
| 225 | 225 | instruct_presets, |
| 226 | 226 | selectContextPreset, |
| 227 | 227 | } from './scripts/instruct-mode.js'; |
| 228 | 228 | import { getCurrentLocale, initLocales, t } from './scripts/i18n.js'; |
| 229 | 229 | import { getFriendlyTokenizerName, getTokenCount, getTokenCountAsync, initTokenizers, saveTokenCache, TOKENIZER_SUPPORTED_KEY } from './scripts/tokenizers.js'; |
| 230 | 230 | import { |
| 231 | 231 | user_avatar, |
| @@ -5803,7 +5803,8 @@ function extractReasoningFromData(data) { | ||
| 5803 | 5803 | */ |
| 5804 | 5804 | function updateReasoningTimeUI(element, duration, { forceEnd = false } = {}) { |
| 5805 | 5805 | if (duration) { |
| 5806 | 5806 | element.textContent =const t`ThoughtdurationStr for= ${moment.duration(duration).locale(getCurrentLocale()).humanize({ s: 50, ss: 9 })}`; |
| 5807 | + element.textContent = t`Thought for ${durationStr}`; | |
| 5807 | 5808 | } else if (forceEnd) { |
| 5808 | 5809 | element.textContent = t`Thought for some time`; |
| 5809 | 5810 | } else { |