import { getMsg } from '~/i18n/index.ts' ; export default class I18nText { text : string ; constructor ( path , args ? ) { this . text = getMsg ( path , args ) ; } toString ( ) { return this . text ; } }