SYMBOL INDEX (143 symbols across 39 files) FILE: examples/react-demo/src/pages/index.tsx function HomePage (line 4) | function HomePage() { FILE: examples/react-demo/src/utils/i18n.ts function t (line 2) | function t(key: string, params: Record = {}) { FILE: packages/i18n-extract-cli/bin/index.js function checkNodeVersion (line 11) | function checkNodeVersion() { FILE: packages/i18n-extract-cli/src/__tests__/transformJs.test.ts function getDefaultOptions (line 8) | function getDefaultOptions(): transformOptions { function resetCollector (line 22) | function resetCollector() { FILE: packages/i18n-extract-cli/src/collector.ts class Collector (line 6) | class Collector { method constructor (line 9) | private constructor() {} method getInstance (line 11) | static getInstance() { method setCurrentCollectorPath (line 25) | setCurrentCollectorPath(path: string) { method getCurrentCollectorPath (line 29) | getCurrentCollectorPath() { method add (line 33) | add(originalText: string, customizeKeyFn: CustomizeKey) { method getCurrentFileKeyMap (line 46) | getCurrentFileKeyMap(): Record { method resetCurrentFileKeyMap (line 50) | resetCurrentFileKeyMap() { method getKeyMap (line 54) | getKeyMap(): StringObject { method setKeyMap (line 58) | setKeyMap(value: StringObject) { method resetCountOfAdditions (line 62) | resetCountOfAdditions() { method getCountOfAdditions (line 66) | getCountOfAdditions(): number { FILE: packages/i18n-extract-cli/src/commands/init/index.ts function execInit (line 7) | function execInit() { FILE: packages/i18n-extract-cli/src/commands/loadExcel/index.ts function getLangList (line 12) | function getLangList(locales: string[], rows: string[][]): StringObject[] { function execLoadExcel (line 31) | function execLoadExcel(options: CommandOptions) { FILE: packages/i18n-extract-cli/src/core.ts type InquirerResult (line 27) | interface InquirerResult { function getPathFromInput (line 34) | function getPathFromInput(input: string, exclude: string[]) { function getSourceFilePaths (line 52) | function getSourceFilePaths(input: string, exclude: string[]): string[] { function saveLocale (line 68) | function saveLocale(localePath: string) { function getPrettierParser (line 84) | function getPrettierParser(ext: string): string { function getOutputPath (line 96) | function getOutputPath(input: string, output: string, sourceFilePath: st... function formatInquirerResult (line 108) | function formatInquirerResult(answers: InquirerResult): TranslateConfig { function getTranslationConfig (line 143) | async function getTranslationConfig() { function formatCode (line 255) | function formatCode(code: string, ext: string, prettierConfig: PrettierC... FILE: packages/i18n-extract-cli/src/default.config.ts function getCustomizeKey (line 5) | function getCustomizeKey(key: string, path?: string): string { function getCustomSlot (line 9) | function getCustomSlot(slotValue: string): string { function getCommonRule (line 13) | function getCommonRule(): Rule { method adjustKeyMap (line 68) | adjustKeyMap(allKeyValue, currentFileKeyMap, currentFilePath) { FILE: packages/i18n-extract-cli/src/exportExcel.ts function exportExcel (line 11) | function exportExcel() { FILE: packages/i18n-extract-cli/src/index.ts function enhanceErrorMessages (line 64) | function enhanceErrorMessages() { function suggestCommands (line 79) | function suggestCommands(unknownOption: string) { FILE: packages/i18n-extract-cli/src/parse.ts function langToExtension (line 10) | function langToExtension(lang = 'js') { function getSourceFileName (line 28) | function getSourceFileName() { function initParse (line 39) | function initParse() { FILE: packages/i18n-extract-cli/src/transform.ts function transform (line 7) | function transform( FILE: packages/i18n-extract-cli/src/transformJs.ts type TemplateParams (line 36) | type TemplateParams = { type Context (line 45) | interface Context { function getObjectExpression (line 49) | function getObjectExpression(obj: TemplateParams): ObjectExpression { function isPropNode (line 66) | function isPropNode(path: NodePath): boolean { function getStringLiteral (line 114) | function getStringLiteral(value: string): StringLiteral { function nodeToCode (line 123) | function nodeToCode(node: Node): string { function insertSnippets (line 128) | function insertSnippets(node: ArrowFunctionExpression | FunctionExpressi... function pushStatement (line 151) | function pushStatement( function transformJs (line 174) | function transformJs( FILE: packages/i18n-extract-cli/src/transformVue.ts type Handler (line 22) | type Handler = (source: string, rule: Rule) => string constant COMMENT_TYPE (line 24) | const COMMENT_TYPE = '!' function parseJsSyntax (line 26) | function parseJsSyntax(source: string, rule: Rule): string { function hasTransformed (line 62) | function hasTransformed(code: string, functionNameInTemplate: string): b... function parseTextNode (line 70) | function parseTextNode( function handleTemplate (line 114) | function handleTemplate(code: string, rule: Rule): string { function getComponentDecoratorPosition (line 295) | function getComponentDecoratorPosition(source: string): number { function getExportDefaultPosition (line 299) | function getExportDefaultPosition(source: string): number { function handleScript (line 303) | function handleScript(source: string, rule: Rule): string { function combineVueScript (line 315) | function combineVueScript(nonComponentCode: string, componentCode: strin... function mergeCode (line 344) | function mergeCode( function removeQuotes (line 358) | function removeQuotes(value: string): string { function getWrapperTemplate (line 366) | function getWrapperTemplate(sfcBlock: SFCTemplateBlock | SFCScriptBlock ... function generateSource (line 392) | function generateSource( function removeSnippet (line 410) | function removeSnippet( function getFileComment (line 419) | function getFileComment(descriptor: SFCDescriptor): string { function transformVue (line 434) | function transformVue( FILE: packages/i18n-extract-cli/src/translate.ts function translateByGoogle (line 18) | async function translateByGoogle( function translateByYoudao (line 35) | async function translateByYoudao( function translateByBaidu (line 52) | async function translateByBaidu( function translateByAlicloud (line 69) | async function translateByAlicloud( type tranlateFunction (line 148) | type tranlateFunction = ( type TranslatorConstructor (line 154) | interface TranslatorConstructor { class Translator (line 159) | class Translator { method constructor (line 166) | constructor({ provider, targetLocale, providerOptions }: TranslatorCon... method translate (line 186) | async translate(dictionary: Record): Promise { FILE: packages/i18n-extract-cli/src/utils/getAbsolutePath.ts function getAbsolutePath (line 4) | function getAbsolutePath(...paths: string[]) { FILE: packages/i18n-extract-cli/src/utils/getLang.ts function getLang (line 5) | function getLang(langPath: string): Record { FILE: packages/i18n-extract-cli/src/utils/getLocaleDir.ts function getLocaleDir (line 3) | function getLocaleDir(): string { FILE: packages/i18n-extract-cli/src/utils/includeChinese.ts function includeChinese (line 1) | function includeChinese(code: string) { FILE: packages/i18n-extract-cli/src/utils/initConfig.ts function getUserConfig (line 9) | function getUserConfig(configFile?: string): deepPartial { function getI18nConfig (line 28) | function getI18nConfig(options: CommandOptions): Config { FILE: packages/i18n-extract-cli/src/utils/isDirectory.ts function isDirectory (line 3) | function isDirectory(filePath: string): boolean { FILE: packages/i18n-extract-cli/src/utils/removeLineBreaksInTag.ts function removeLineBreaksInTag (line 1) | function removeLineBreaksInTag(str: string): string { FILE: packages/i18n-extract-cli/src/utils/saveLocaleFile.ts function saveLocaleFile (line 6) | function saveLocaleFile(locale: StringObject, path: string) { FILE: packages/i18n-extract-cli/src/utils/serializeCode.ts function serializeCode (line 4) | function serializeCode(source: unknown, isESModule = true) { FILE: packages/i18n-extract-cli/src/utils/spreadObject.ts function spreadObject (line 4) | function spreadObject(obj: Record): StringObject { FILE: packages/i18n-extract-cli/src/utils/stateManager.ts class StateManager (line 4) | class StateManager { method constructor (line 7) | private constructor() {} method getInstance (line 15) | static getInstance() { method setToolConfig (line 22) | setToolConfig(config: Config): void { method getToolConfig (line 25) | getToolConfig(): Config { method setCurrentSourcePath (line 29) | setCurrentSourcePath(path: string): void { method getCurrentSourcePath (line 33) | getCurrentSourcePath(): string { method setVueScriptLang (line 37) | setVueScriptLang(lang?: string): void { method getVueScriptLang (line 41) | getVueScriptLang(): string { FILE: packages/i18n-extract-cli/types/index.d.ts type deepPartial (line 4) | type deepPartial = { type GlobalRule (line 8) | interface GlobalRule { type transformOptions (line 12) | interface transformOptions { type CustomizeKey (line 19) | type CustomizeKey = (key: string, path?: string) => string type GetCustomSlot (line 21) | type GetCustomSlot = (slotValue: string) => string type Rule (line 23) | interface Rule { type Rules (line 36) | type Rules = { type FileExtension (line 40) | type FileExtension = 'js' | 'ts' | 'cjs' | 'mjs' | 'jsx' | 'tsx' | 'vue' type StringObject (line 42) | type StringObject = { type AdjustKeyMap (line 46) | type AdjustKeyMap = ( type YoudaoConfig (line 52) | interface YoudaoConfig { type BaiduConfig (line 57) | interface BaiduConfig { type AlicloudConfig (line 62) | interface AlicloudConfig { type translatorType (line 67) | type translatorType = 'google' | 'youdao' | 'baidu' | 'alicloud' type TranslateConfig (line 68) | interface TranslateConfig { type PrettierConfig (line 79) | type PrettierConfig = Options | boolean type TagOrder (line 81) | type TagOrder = Array<'template' | 'script' | 'style'> type Config (line 83) | type Config = { type CommandOptions (line 116) | interface CommandOptions { FILE: packages/translate-utils/index.d.ts type YoudaoConfig (line 1) | interface YoudaoConfig { type BaiduConfig (line 6) | interface BaiduConfig { type AlicloudConfig (line 11) | interface AlicloudConfig { FILE: packages/translate-utils/src/alicloud.ts type AlicloudConfig (line 5) | interface AlicloudConfig { function createClient (line 10) | function createClient(key = '', secret = ''): alimt20181012 { function toAlicloudLangCode (line 19) | function toAlicloudLangCode(locale: string): string { function alicloudTranslate (line 27) | async function alicloudTranslate( FILE: packages/translate-utils/src/baidu.ts type BaiduConfig (line 6) | interface BaiduConfig { function baiduTranslate (line 11) | async function baiduTranslate( FILE: packages/translate-utils/src/google.ts function googleTranslate (line 4) | async function googleTranslate( FILE: packages/translate-utils/src/youdao.ts type YoudaoConfig (line 6) | interface YoudaoConfig { function youdaoTranslate (line 11) | async function youdaoTranslate(