Skip to content

Commit 49a83b8

Browse files
Remove unused createDefaultHtmlProject export
Co-authored-by: Chris Zetter <zetter-rpf@users.noreply.github.com>
1 parent e6766c8 commit 49a83b8

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/utils/defaultProjects.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,3 @@ export const createDefaultPythonProject = async (locale = i18n.language) => {
4141
};
4242
};
4343

44-
export const createDefaultHtmlProject = async (locale = i18n.language) => {
45-
try {
46-
if (locale && i18n.resolvedLanguage !== locale) {
47-
await i18n.changeLanguage?.(locale);
48-
}
49-
} catch {
50-
// Fall back to the default untitled name if locale files fail.
51-
}
52-
53-
return {
54-
...defaultHtmlProject,
55-
name: i18n.t("project.untitled", {
56-
lng: locale,
57-
defaultValue: UNTITLED_PROJECT_NAME,
58-
}),
59-
};
60-
};

0 commit comments

Comments
 (0)