vue-i18n-locale-message
vue-i18n-locale-message copied to clipboard
locale messages yaml format output option
API
type Option = {
format?: 'json' | 'yaml' | 'yml'
}
sqeeze (basePath: string, files: SFCFileInfo[], option = { format: 'json' }: : Option): LocaleMessages
infuse (basePath: string, sources: SFCFileInfo[], messages: LocaleMessages, option = { format: 'json' }: : Option): SFCFileInfo[]
CLI
vue-i18n-locale-message squeeze --target=./src --format='yaml'
vue-i18n-locale-message infuse --target=./src --message=./message.yaml
--format
is able to ommit, default is 'json'.
in about infuse
command, format option can be decide from the file extension