@discord/intl-message-database 0.21.0 → 0.21.1-canary.d6da0a2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +23 -16
- package/package.json +11 -11
package/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export declare class IntlMessagesDatabase {
|
|
|
4
4
|
constructor()
|
|
5
5
|
findAllMessagesFiles(directories: Array<string>, defaultDefinitionLocale: string): Array<IntlMessagesFileDescriptor>
|
|
6
6
|
filterAllMessagesFiles(files: Array<string>, defaultDefinitionLocale: string): Array<IntlMessagesFileDescriptor>
|
|
7
|
-
processAllMessagesFiles(directories: Array<IntlMessagesFileDescriptor>):
|
|
8
|
-
processDefinitionsFile(filePath: string, locale?: string | undefined | null):
|
|
9
|
-
processDefinitionsFileContent(filePath: string, content: string, locale?: string | undefined | null):
|
|
10
|
-
processAllTranslationFiles(localeMap: Record<string, string>):
|
|
11
|
-
processTranslationFile(filePath: string, locale: string):
|
|
12
|
-
processTranslationFileContent(filePath: string, locale: string, content: string):
|
|
7
|
+
processAllMessagesFiles(directories: Array<IntlMessagesFileDescriptor>): Array<IntlSourceFileInsertionData>
|
|
8
|
+
processDefinitionsFile(filePath: string, locale?: string | undefined | null): IntlSourceFileInsertionData
|
|
9
|
+
processDefinitionsFileContent(filePath: string, content: string, locale?: string | undefined | null): IntlSourceFileInsertionData
|
|
10
|
+
processAllTranslationFiles(localeMap: Record<string, string>): Array<IntlSourceFileInsertionData>
|
|
11
|
+
processTranslationFile(filePath: string, locale: string): IntlSourceFileInsertionData
|
|
12
|
+
processTranslationFileContent(filePath: string, locale: string, content: string): IntlSourceFileInsertionData
|
|
13
13
|
getKnownLocales(): Array<string>
|
|
14
14
|
getSourceFile(filePath: string): IntlSourceFile
|
|
15
15
|
getAllSourceFilePaths(): Array<string>
|
|
@@ -89,16 +89,6 @@ export interface IntlMessageValue {
|
|
|
89
89
|
filePosition: object
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
export interface IntlMultiProcessingFailure {
|
|
93
|
-
file: string
|
|
94
|
-
error: string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface IntlMultiProcessingResult {
|
|
98
|
-
processed: Array<string>
|
|
99
|
-
failed: Array<IntlMultiProcessingFailure>
|
|
100
|
-
}
|
|
101
|
-
|
|
102
92
|
export interface IntlSourceFile {
|
|
103
93
|
type: string
|
|
104
94
|
file: string
|
|
@@ -107,6 +97,23 @@ export interface IntlSourceFile {
|
|
|
107
97
|
meta: IntlSourceFileMeta
|
|
108
98
|
}
|
|
109
99
|
|
|
100
|
+
export interface IntlSourceFileError {
|
|
101
|
+
name: string
|
|
102
|
+
key?: string
|
|
103
|
+
locale?: string
|
|
104
|
+
file?: string
|
|
105
|
+
line?: number
|
|
106
|
+
col?: number
|
|
107
|
+
message: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface IntlSourceFileInsertionData {
|
|
111
|
+
fileKey: string
|
|
112
|
+
insertedCount: number
|
|
113
|
+
removedCount: number
|
|
114
|
+
errors: Array<IntlSourceFileError>
|
|
115
|
+
}
|
|
116
|
+
|
|
110
117
|
export interface IntlSourceFileMeta {
|
|
111
118
|
description: string
|
|
112
119
|
secret: boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discord/intl-message-database",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1-canary.d6da0a2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Rust-based Node extension module for parsing, extracting, and managing messages and translations across a project.",
|
|
6
6
|
"author": "Jon Egeland",
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"url": "https://github.com/discord/discord-intl"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@discord/intl-message-database-darwin-
|
|
19
|
-
"@discord/intl-message-database-
|
|
20
|
-
"@discord/intl-message-database-linux-arm64-
|
|
21
|
-
"@discord/intl-message-database-linux-
|
|
22
|
-
"@discord/intl-message-database-
|
|
23
|
-
"@discord/intl-message-database-linux-x64-musl": "0.21.
|
|
24
|
-
"@discord/intl-message-database-win32-arm64-msvc": "0.21.
|
|
25
|
-
"@discord/intl-message-database-win32-
|
|
26
|
-
"@discord/intl-message-database-win32-
|
|
18
|
+
"@discord/intl-message-database-darwin-arm64": "0.21.1-canary.d6da0a2",
|
|
19
|
+
"@discord/intl-message-database-darwin-x64": "0.21.1-canary.d6da0a2",
|
|
20
|
+
"@discord/intl-message-database-linux-arm64-gnu": "0.21.1-canary.d6da0a2",
|
|
21
|
+
"@discord/intl-message-database-linux-arm64-musl": "0.21.1-canary.d6da0a2",
|
|
22
|
+
"@discord/intl-message-database-linux-x64-gnu": "0.21.1-canary.d6da0a2",
|
|
23
|
+
"@discord/intl-message-database-linux-x64-musl": "0.21.1-canary.d6da0a2",
|
|
24
|
+
"@discord/intl-message-database-win32-arm64-msvc": "0.21.1-canary.d6da0a2",
|
|
25
|
+
"@discord/intl-message-database-win32-ia32-msvc": "0.21.1-canary.d6da0a2",
|
|
26
|
+
"@discord/intl-message-database-win32-x64-msvc": "0.21.1-canary.d6da0a2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@napi-rs/cli": "^2.18.3",
|
|
30
|
-
"@discord/intl-ast": "0.21.
|
|
30
|
+
"@discord/intl-ast": "0.21.1-canary.d6da0a2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">= 10"
|