We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f4ea2 commit 595215fCopy full SHA for 595215f
2 files changed
.changeset/huge-walls-kiss.md
@@ -0,0 +1,5 @@
1
+---
2
+"lingo.dev": patch
3
4
+
5
+improve observability for i18n
packages/cli/src/cli/cmd/i18n.ts
@@ -93,10 +93,6 @@ export default new Command()
93
.action(async function (options) {
94
updateGitignore();
95
96
- await trackEvent(null, "cmd.i18n.start", {
97
- rawOptions: options,
98
- });
99
-
100
const ora = Ora();
101
let flags: ReturnType<typeof parseFlags>;
102
@@ -153,6 +149,11 @@ export default new Command()
153
149
ora.succeed(`Authenticated as ${auth.email}`);
154
150
}
155
151
152
+ await trackEvent(authId, "cmd.i18n.start", {
+ i18nConfig,
+ flags,
+ });
156
157
let buckets = getBuckets(i18nConfig!);
158
if (flags.bucket?.length) {
159
buckets = buckets.filter((bucket: any) =>
0 commit comments