Skip to content

Commit c2b762c

Browse files
committed
chore: upd observability for i18n
1 parent a4e7259 commit c2b762c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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)