mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 07:10:15 +08:00
BookCreator and CreateTopicWizard passed i18next's t to useTopicSourceLibrary, which calls its translator as (zh, en). i18next read the Chinese text as the key and the English text as the default, so labels such as "Untitled question" stayed English even in Chinese. catalogTranslate() builds the (zh, en) translator from t for all three callers, and the message and file counts become interpolated keys.