@discord/intl-loader-core 0.11.1 → 0.11.2-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/intl-loader-core",
3
- "version": "0.11.1",
3
+ "version": "0.11.2-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "Core utilities for writing loaders and transformers using @discord/intl",
6
6
  "author": "Jon Egeland",
@@ -29,7 +29,7 @@
29
29
  "chokidar": "^3.6.0",
30
30
  "debug": "^4.3.6",
31
31
  "fast-glob": "^3.3.2",
32
- "@discord/intl-message-database": "0.11.1"
32
+ "@discord/intl-message-database": "0.11.2-rc.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/debug": "^4.1.12",
package/src/processing.js CHANGED
@@ -64,7 +64,7 @@ function findAllMessagesFiles(directories, defaultLocale = 'en-US') {
64
64
  * with a `sourceContent` argument.
65
65
  *
66
66
  * @param {import('../types').IntlMessagesFileDescriptor[]} files
67
- * @returns {string[]}
67
+ * @returns {import('../types').IntlMultiProcessingResult}
68
68
  */
69
69
  function processAllMessagesFiles(files) {
70
70
  return database.processAllMessagesFiles(files);
@@ -110,7 +110,8 @@ function processDefinitionsFile(sourcePath, sourceContent, options = {}) {
110
110
  );
111
111
 
112
112
  if (processTranslations) {
113
- database.processAllTranslationFiles(translationsLocaleMap);
113
+ const translationsResult = database.processAllTranslationFiles(translationsLocaleMap);
114
+ debug('[${sourcePath}] Finished processing all translations: %O', translationsResult);
114
115
  }
115
116
 
116
117
  return {
@@ -20,9 +20,9 @@ export function findAllMessagesFiles(directories: string[], defaultLocale?: stri
20
20
  * with a `sourceContent` argument.
21
21
  *
22
22
  * @param {import('../types').IntlMessagesFileDescriptor[]} files
23
- * @returns {string[]}
23
+ * @returns {import('../types').IntlMultiProcessingResult}
24
24
  */
25
- export function processAllMessagesFiles(files: import("../types").IntlMessagesFileDescriptor[]): string[];
25
+ export function processAllMessagesFiles(files: import("../types").IntlMessagesFileDescriptor[]): import("../types").IntlMultiProcessingResult;
26
26
  /**
27
27
  * Generate a `.d.ts` file containing TypeScript type definitions for all of the messages defined in
28
28
  * `sourcePath`. This method does not process `sourcePath` at all, meaning it expects the database