mtcute/packages/create-bot/template/src/i18n/index.js.hbs

19 lines
407 B
Handlebars
Raw Normal View History

{{emit_if (and (not features.typescript) features.i18n)}}
import { createMtcuteI18n } from '@mtcute/i18n'
{{#if (eq runtime "node")}}
import { en } from './en.js'
import { ru } from './ru.js'
{{else}}
import { en } from './en.ts'
import { ru } from './ru.ts'
{{/if}}
export const tr = createMtcuteI18n({
primaryLanguage: {
name: 'en',
strings: en,
},
otherLanguages: { ru }
})