Skip to content

Commit 535855a

Browse files
authored
fix: import with explicit languageTag (#163)
1 parent fba8d36 commit 535855a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/commands/push.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ const pushHandler = (config: Schema) =>
205205
format: format,
206206
languageTag: f.language,
207207
namespace: f.namespace ?? '',
208-
languageTagsToImport: opts.languages,
208+
// there can be multiple languages inside the file
209+
// that is detected on the backend
210+
// and we only say which we want to import by `languageTagsToImport`
211+
// however we don't want to use this property,
212+
// when it's explicitly defined what language is in the file
213+
languageTagsToImport: !f.language ? opts.languages : undefined,
209214
};
210215
}),
211216
removeOtherKeys: opts.removeOtherKeys,

0 commit comments

Comments
 (0)