-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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.)