MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isChineseLocale

Function isChineseLocale

packages/node-runtime/src/ai/preprocessor/format.ts:5–7  ·  view source on GitHub ↗
(locale?: string)

Source from the content-addressed store, hash-verified

3 */
4
5export function isChineseLocale(locale?: string): boolean {
6 return locale?.startsWith('zh') ?? false
7}
8
9export const i18nTexts = {
10 allTime: { zh: '全部时间', en: 'All time' },

Callers 3

tFunction · 0.70
formatMessageCompactFunction · 0.70
formatTimeRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected