lingo.dev 0.114.3 → 0.114.5

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/build/cli.cjs CHANGED
@@ -9917,7 +9917,8 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
9917
9917
  (val, prev) => prev ? [...prev, val] : [val]
9918
9918
  ).option(
9919
9919
  "--key <key>",
9920
- "Limit processing to a single translation key by exact match. Filters all buckets and locales to process only this key, useful for testing or debugging specific translations. Example: auth.login.title"
9920
+ "Limit processing to a single translation key by exact match. Filters all buckets and locales to process only this key, useful for testing or debugging specific translations. Example: auth.login.title",
9921
+ (val) => encodeURIComponent(val)
9921
9922
  ).option(
9922
9923
  "--file [files...]",
9923
9924
  "Filter processing to only buckets whose file paths contain these substrings. Example: 'components' to process only files in components directories"
@@ -10912,10 +10913,12 @@ var IntegrationFlow = class {
10912
10913
  }
10913
10914
 
10914
10915
  };
10915
- var gitConfig = {
10916
- userName: "Lingo.dev",
10917
- userEmail: "support@lingo.dev"
10918
- };
10916
+ function getGitConfig(platformKit) {
10917
+ return {
10918
+ userName: platformKit.config.commitAuthorName,
10919
+ userEmail: platformKit.config.commitAuthorEmail
10920
+ };
10921
+ }
10919
10922
  function escapeShellArg(arg) {
10920
10923
  return `'${arg.replace(/'/g, "'\\''")}'`;
10921
10924
  }
@@ -12066,7 +12069,7 @@ var run_default = new (0, _interactivecommander.Command)().command("run").descri
12066
12069
  ).option(
12067
12070
  "--key <key>",
12068
12071
  "Filter keys by prefix matching on dot-separated paths. Example: auth.login to match all keys starting with auth.login. Repeat for multiple patterns",
12069
- (val, prev) => prev ? [...prev, val] : [val]
12072
+ (val, prev) => prev ? [...prev, encodeURIComponent(val)] : [encodeURIComponent(val)]
12070
12073
  ).option(
12071
12074
  "--force",
12072
12075
  "Force re-translation of all keys, bypassing change detection. Useful when you want to regenerate translations with updated AI models or translation settings"
@@ -12205,6 +12208,7 @@ var InBranchFlow = class extends IntegrationFlow {
12205
12208
  configureGit() {
12206
12209
  const { processOwnCommits } = this.platformKit.config;
12207
12210
  const { baseBranchName } = this.platformKit.platformConfig;
12211
+ const gitConfig = getGitConfig(this.platformKit);
12208
12212
  this.ora.info(`Current working directory:`);
12209
12213
  _child_process.execSync.call(void 0, `pwd`, { stdio: "inherit" });
12210
12214
  _child_process.execSync.call(void 0, `ls -la`, { stdio: "inherit" });
@@ -12464,6 +12468,8 @@ var PlatformKit = class {
12464
12468
  ),
12465
12469
  LINGODOTDEV_COMMIT_MESSAGE: _zod2.default.string().optional(),
12466
12470
  LINGODOTDEV_PULL_REQUEST_TITLE: _zod2.default.string().optional(),
12471
+ LINGODOTDEV_COMMIT_AUTHOR_NAME: _zod2.default.string().optional(),
12472
+ LINGODOTDEV_COMMIT_AUTHOR_EMAIL: _zod2.default.string().optional(),
12467
12473
  LINGODOTDEV_WORKING_DIRECTORY: _zod2.default.string().optional(),
12468
12474
  LINGODOTDEV_PROCESS_OWN_COMMITS: _zod2.default.preprocess(
12469
12475
  (val) => val === "true" || val === true,
@@ -12475,6 +12481,8 @@ var PlatformKit = class {
12475
12481
  isPullRequestMode: env.LINGODOTDEV_PULL_REQUEST,
12476
12482
  commitMessage: env.LINGODOTDEV_COMMIT_MESSAGE || defaultMessage,
12477
12483
  pullRequestTitle: env.LINGODOTDEV_PULL_REQUEST_TITLE || defaultMessage,
12484
+ commitAuthorName: env.LINGODOTDEV_COMMIT_AUTHOR_NAME || "Lingo.dev",
12485
+ commitAuthorEmail: env.LINGODOTDEV_COMMIT_AUTHOR_EMAIL || "support@lingo.dev",
12478
12486
  workingDir: env.LINGODOTDEV_WORKING_DIRECTORY || ".",
12479
12487
  processOwnCommits: env.LINGODOTDEV_PROCESS_OWN_COMMITS || false
12480
12488
  };
@@ -12813,6 +12821,12 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
12813
12821
  ).option(
12814
12822
  "--pull-request-title <title>",
12815
12823
  "Title for the pull request when using --pull-request mode. Defaults to 'feat: update translations via @lingodotdev'"
12824
+ ).option(
12825
+ "--commit-author-name <name>",
12826
+ "Git commit author name. Defaults to 'Lingo.dev'"
12827
+ ).option(
12828
+ "--commit-author-email <email>",
12829
+ "Git commit author email. Defaults to 'support@lingo.dev'"
12816
12830
  ).option(
12817
12831
  "--working-directory <dir>",
12818
12832
  "Directory to run localization from (useful for monorepos where localization files are in a subdirectory)"
@@ -12845,6 +12859,12 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
12845
12859
  ...options.pullRequestTitle && {
12846
12860
  LINGODOTDEV_PULL_REQUEST_TITLE: options.pullRequestTitle
12847
12861
  },
12862
+ ...options.commitAuthorName && {
12863
+ LINGODOTDEV_COMMIT_AUTHOR_NAME: options.commitAuthorName
12864
+ },
12865
+ ...options.commitAuthorEmail && {
12866
+ LINGODOTDEV_COMMIT_AUTHOR_EMAIL: options.commitAuthorEmail
12867
+ },
12848
12868
  ...options.workingDirectory && {
12849
12869
  LINGODOTDEV_WORKING_DIRECTORY: options.workingDirectory
12850
12870
  },
@@ -13510,7 +13530,7 @@ async function renderHero2() {
13510
13530
  // package.json
13511
13531
  var package_default = {
13512
13532
  name: "lingo.dev",
13513
- version: "0.114.3",
13533
+ version: "0.114.5",
13514
13534
  description: "Lingo.dev CLI",
13515
13535
  private: false,
13516
13536
  publishConfig: {
@@ -13775,7 +13795,8 @@ var purge_default = new (0, _interactivecommander.Command)().command("purge").de
13775
13795
  "Filter which file paths to purge by matching against path patterns. Only paths containing any of these values will be processed. Examples: --file messages.json --file admin/"
13776
13796
  ).option(
13777
13797
  "--key <key>",
13778
- "Filter which keys to delete using prefix matching on dot-separated key paths. Example: 'auth.login' matches all keys starting with auth.login. Omit this option to delete ALL keys. Keys marked as locked or ignored in i18n.json are automatically skipped"
13798
+ "Filter which keys to delete using prefix matching on dot-separated key paths. Example: 'auth.login' matches all keys starting with auth.login. Omit this option to delete ALL keys. Keys marked as locked or ignored in i18n.json are automatically skipped",
13799
+ (val) => encodeURIComponent(val)
13779
13800
  ).option(
13780
13801
  "--locale <locale>",
13781
13802
  "Limit purging to specific target locale codes from i18n.json. Repeat the flag to include multiple locales. Defaults to all configured target locales. Warning: Including the source locale will delete content from it as well.",