@discord/intl-message-database 0.0.4-rc.0 → 0.0.6-rc.0
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 +7 -3
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export declare class IntlMessagesDatabase {
|
|
4
4
|
constructor()
|
|
5
|
-
processDefinitionsFile(filePath: string): number
|
|
6
|
-
processDefinitionsFileContent(filePath: string, content: string): number
|
|
5
|
+
processDefinitionsFile(filePath: string, locale?: string | undefined | null): number
|
|
6
|
+
processDefinitionsFileContent(filePath: string, content: string, locale?: string | undefined | null): number
|
|
7
7
|
processAllTranslationFiles(localeMap: Record<string, string>): void
|
|
8
8
|
processTranslationFile(filePath: string, locale: string): number
|
|
9
9
|
processTranslationFileContent(filePath: string, locale: string, content: string): number
|
|
10
10
|
getKnownLocales(): Array<string>
|
|
11
11
|
getSourceFile(filePath: string): IntlSourceFile
|
|
12
12
|
getAllSourceFilePaths(): Array<string>
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Return a map of all message keys contained in the given source file, where the key of the
|
|
15
|
+
* map is the hashed name and the value is the original.
|
|
16
|
+
*/
|
|
17
|
+
getSourceFileKeyMap(filePath: string): Record<string, string>
|
|
14
18
|
getMessage(key: string): unknown
|
|
15
19
|
generateTypes(sourceFilePath: string, outputFilePath: string): void
|
|
16
20
|
precompile(sourcePath: string, locale: string, outputPath: string, format?: IntlCompiledMessageFormat | undefined | null): void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discord/intl-message-database",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6-rc.0",
|
|
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,15 +15,15 @@
|
|
|
15
15
|
"url": "https://github.com/discord/discord-intl"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@discord/intl-message-database-
|
|
19
|
-
"@discord/intl-message-database-linux-arm64-
|
|
20
|
-
"@discord/intl-message-database-darwin-x64": "0.0.
|
|
21
|
-
"@discord/intl-message-database-linux-
|
|
22
|
-
"@discord/intl-message-database-linux-x64-gnu": "0.0.
|
|
23
|
-
"@discord/intl-message-database-win32-arm64-msvc": "0.0.
|
|
24
|
-
"@discord/intl-message-database-
|
|
25
|
-
"@discord/intl-message-database-win32-x64-msvc": "0.0.
|
|
26
|
-
"@discord/intl-message-database-
|
|
18
|
+
"@discord/intl-message-database-darwin-arm64": "0.0.6-rc.0",
|
|
19
|
+
"@discord/intl-message-database-linux-arm64-gnu": "0.0.6-rc.0",
|
|
20
|
+
"@discord/intl-message-database-darwin-x64": "0.0.6-rc.0",
|
|
21
|
+
"@discord/intl-message-database-linux-arm64-musl": "0.0.6-rc.0",
|
|
22
|
+
"@discord/intl-message-database-linux-x64-gnu": "0.0.6-rc.0",
|
|
23
|
+
"@discord/intl-message-database-win32-arm64-msvc": "0.0.6-rc.0",
|
|
24
|
+
"@discord/intl-message-database-win32-ia32-msvc": "0.0.6-rc.0",
|
|
25
|
+
"@discord/intl-message-database-win32-x64-msvc": "0.0.6-rc.0",
|
|
26
|
+
"@discord/intl-message-database-linux-x64-musl": "0.0.6-rc.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@napi-rs/cli": "^2.18.3"
|