vue-i18n-locale-message icon indicating copy to clipboard operation
vue-i18n-locale-message copied to clipboard

locale messages yaml format output option

Open kazupon opened this issue 5 years ago • 0 comments

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

kazupon avatar Aug 28 '19 10:08 kazupon