Skip to content

locale messages yaml format output option #7

Open
@kazupon

Description

@kazupon

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions