Skip to content

Readme Suggestion #8

@kk343

Description

@kk343

Under translate(text, options), it is better to leave a blank line for each feature description and put the explanation in brackets for smoother reading. The modified result is as follows:

text

Type: string, array

The text to be translated

options

Type: object

from? Type: string Default: auto
(The text language. Must be auto or one of the codes/names (not case sensitive) contained in src/languages.ts)

to Type: string Default: en
(The language in which the text should be translated. Must be one of the codes/names (not case sensitive) contained in src/languages.ts.)

tld Type: string 'com' | 'cn' <Default 'com'>
(cn is for China, com for others.)

proxy Type: AxiosProxyConfig
(proxy for request. )

config Type: object
(config for axios)

(This is for homework requirements, thank you.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions