Skip to content

Commit 595215f

Browse files
authored
chore: improve observability i18n (#1681)
1 parent 28f4ea2 commit 595215f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.changeset/huge-walls-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
improve observability for i18n

packages/cli/src/cli/cmd/i18n.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ export default new Command()
9393
.action(async function (options) {
9494
updateGitignore();
9595

96-
await trackEvent(null, "cmd.i18n.start", {
97-
rawOptions: options,
98-
});
99-
10096
const ora = Ora();
10197
let flags: ReturnType<typeof parseFlags>;
10298

@@ -153,6 +149,11 @@ export default new Command()
153149
ora.succeed(`Authenticated as ${auth.email}`);
154150
}
155151

152+
await trackEvent(authId, "cmd.i18n.start", {
153+
i18nConfig,
154+
flags,
155+
});
156+
156157
let buckets = getBuckets(i18nConfig!);
157158
if (flags.bucket?.length) {
158159
buckets = buckets.filter((bucket: any) =>

0 commit comments

Comments
 (0)