lingo.dev 0.114.4 → 0.115.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/README.md CHANGED
@@ -170,6 +170,6 @@ If you like what we're doing, give us a ⭐ and help us reach 5,000 stars! 🌟
170
170
 
171
171
  ## 🌐 Readme in other languages
172
172
 
173
- [English](https://github.com/lingodotdev/lingo.dev) • [中文](/readme/zh-Hans.md) • [日本語](/readme/ja.md) • [한국어](/readme/ko.md) • [Español](/readme/es.md) • [Français](/readme/fr.md) • [Русский](/readme/ru.md) • [Українська](/readme/uk-UA.md) • [Deutsch](/readme/de.md) • [Italiano](/readme/it.md) • [العربية](/readme/ar.md) • [עברית](/readme/he.md) • [हिन्दी](/readme/hi.md) • [বাংলা](/readme/bn.md) • [فارسی](/readme/fa.md)
173
+ [English](https://github.com/lingodotdev/lingo.dev) • [中文](/readme/zh-Hans.md) • [日本語](/readme/ja.md) • [한국어](/readme/ko.md) • [Español](/readme/es.md) • [Français](/readme/fr.md) • [Русский](/readme/ru.md) • [Українська](/readme/uk-UA.md) • [Deutsch](/readme/de.md) • [Italiano](/readme/it.md) • [العربية](/readme/ar.md) • [עברית](/readme/he.md) • [हिन्दी](/readme/hi.md) • [বাংলা](/readme/bn.md) • [فارسی](/readme/fa.md) • [Bhojpuri](/readme/bho.md)
174
174
 
175
175
  Don't see your language? Add it to [`i18n.json`](./i18n.json) and open a PR!
package/build/cli.cjs CHANGED
@@ -10913,10 +10913,12 @@ var IntegrationFlow = class {
10913
10913
  }
10914
10914
 
10915
10915
  };
10916
- var gitConfig = {
10917
- userName: "Lingo.dev",
10918
- userEmail: "support@lingo.dev"
10919
- };
10916
+ function getGitConfig(platformKit) {
10917
+ return {
10918
+ userName: platformKit.config.commitAuthorName,
10919
+ userEmail: platformKit.config.commitAuthorEmail
10920
+ };
10921
+ }
10920
10922
  function escapeShellArg(arg) {
10921
10923
  return `'${arg.replace(/'/g, "'\\''")}'`;
10922
10924
  }
@@ -12206,6 +12208,7 @@ var InBranchFlow = class extends IntegrationFlow {
12206
12208
  configureGit() {
12207
12209
  const { processOwnCommits } = this.platformKit.config;
12208
12210
  const { baseBranchName } = this.platformKit.platformConfig;
12211
+ const gitConfig = getGitConfig(this.platformKit);
12209
12212
  this.ora.info(`Current working directory:`);
12210
12213
  _child_process.execSync.call(void 0, `pwd`, { stdio: "inherit" });
12211
12214
  _child_process.execSync.call(void 0, `ls -la`, { stdio: "inherit" });
@@ -12465,6 +12468,8 @@ var PlatformKit = class {
12465
12468
  ),
12466
12469
  LINGODOTDEV_COMMIT_MESSAGE: _zod2.default.string().optional(),
12467
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(),
12468
12473
  LINGODOTDEV_WORKING_DIRECTORY: _zod2.default.string().optional(),
12469
12474
  LINGODOTDEV_PROCESS_OWN_COMMITS: _zod2.default.preprocess(
12470
12475
  (val) => val === "true" || val === true,
@@ -12476,6 +12481,8 @@ var PlatformKit = class {
12476
12481
  isPullRequestMode: env.LINGODOTDEV_PULL_REQUEST,
12477
12482
  commitMessage: env.LINGODOTDEV_COMMIT_MESSAGE || defaultMessage,
12478
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",
12479
12486
  workingDir: env.LINGODOTDEV_WORKING_DIRECTORY || ".",
12480
12487
  processOwnCommits: env.LINGODOTDEV_PROCESS_OWN_COMMITS || false
12481
12488
  };
@@ -12814,6 +12821,12 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
12814
12821
  ).option(
12815
12822
  "--pull-request-title <title>",
12816
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'"
12817
12830
  ).option(
12818
12831
  "--working-directory <dir>",
12819
12832
  "Directory to run localization from (useful for monorepos where localization files are in a subdirectory)"
@@ -12846,6 +12859,12 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
12846
12859
  ...options.pullRequestTitle && {
12847
12860
  LINGODOTDEV_PULL_REQUEST_TITLE: options.pullRequestTitle
12848
12861
  },
12862
+ ...options.commitAuthorName && {
12863
+ LINGODOTDEV_COMMIT_AUTHOR_NAME: options.commitAuthorName
12864
+ },
12865
+ ...options.commitAuthorEmail && {
12866
+ LINGODOTDEV_COMMIT_AUTHOR_EMAIL: options.commitAuthorEmail
12867
+ },
12849
12868
  ...options.workingDirectory && {
12850
12869
  LINGODOTDEV_WORKING_DIRECTORY: options.workingDirectory
12851
12870
  },
@@ -13511,7 +13530,7 @@ async function renderHero2() {
13511
13530
  // package.json
13512
13531
  var package_default = {
13513
13532
  name: "lingo.dev",
13514
- version: "0.114.4",
13533
+ version: "0.115.0",
13515
13534
  description: "Lingo.dev CLI",
13516
13535
  private: false,
13517
13536
  publishConfig: {