Skip to content

Commit

Permalink
fix: i18n fs condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilko01 committed Feb 3, 2025
1 parent 06398ab commit e8bdee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/i18n/src/write/properties/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function createPropertiesI18nEntries(
root?: string,
fs?: Editor
): Promise<boolean> {
if (!fs?.exists(i18nFilePath) && !(await doesExist(i18nFilePath))) {
if ((!fs && !(await doesExist(i18nFilePath))) || (fs && !fs.exists(i18nFilePath))) {
let content = '# Resource bundle \n';
if (root) {
content = `# This is the resource bundle for ${basename(root)}\n`;
Expand Down

0 comments on commit e8bdee0

Please sign in to comment.