Skip to content

Commit

Permalink
Use changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent 1566daa commit 57fa903
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react-email/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import path from "node:path";

const translations: Record<string, Record<string, string>> = {};

/**
* Recursively searches up directory tree for package.json
*/
const findPackageRoot = (dir: string): string => {
if (fs.existsSync(path.join(dir, "package.json"))) {
return dir;
Expand All @@ -19,9 +16,6 @@ const findPackageRoot = (dir: string): string => {
return findPackageRoot(parentDir);
};

/**
* Recursively loads all JSON translation files from locales directory
*/
const loadTranslations = (dir: string, baseDir: string) => {
const files = fs.readdirSync(dir);

Expand Down

0 comments on commit 57fa903

Please sign in to comment.