(null);
const [loading, setLoading] = useState(false);
@@ -187,11 +189,11 @@ export const FileTree = ({ root, basePath, onOpenFile, searchForFile, refreshTok
}
if (loading && entries === null) {
- return Loading...
;
+ return {t('codeEditor.loading')}
;
}
if (!entries || entries.length === 0) {
- return No files
;
+ return {t('codeEditor.noFiles')}
;
}
return (