Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the function/class responsible for flattening objects.
- Loading branch information
1 parent
5923c59
commit e782e6a
Showing
15 changed files
with
2,448 additions
and
1,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { LocaleKit } from "./mod.ts"; | ||
|
||
const locale = new LocaleKit({ | ||
languages: { | ||
en: { | ||
test: { | ||
key: "Test Key", | ||
}, | ||
}, | ||
}, | ||
fallback_language: "en", | ||
languages: { | ||
en: { | ||
test: { | ||
key: "Test Key", | ||
}, | ||
}, | ||
}, | ||
fallback_language: "en", | ||
}); | ||
|
||
console.log(locale.t("test.key")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,43 @@ | ||
{ | ||
"fmt": { | ||
"exclude": ["README.md", "npm_build/"], | ||
"exclude": [ | ||
"README.md", | ||
"npm_build/" | ||
], | ||
"options": {} | ||
}, | ||
"lint": { | ||
"exclude": ["npm_build/"], | ||
"exclude": [ | ||
"npm_build/" | ||
], | ||
"rules": { | ||
"tags": ["recommended"], | ||
"tags": [ | ||
"recommended" | ||
], | ||
"include": [], | ||
"exclude": [] | ||
} | ||
}, | ||
"test": { | ||
"include": ["test/"], | ||
"exclude": ["npm_build/"] | ||
"include": [ | ||
"test/" | ||
], | ||
"exclude": [ | ||
"npm_build/" | ||
] | ||
}, | ||
"bench": { | ||
"include": ["test/"], | ||
"exclude": ["npm_build/"] | ||
"include": [ | ||
"test/" | ||
], | ||
"exclude": [ | ||
"npm_build/" | ||
] | ||
}, | ||
"compilerOptions": {} | ||
} | ||
"compilerOptions": {}, | ||
"tasks": { | ||
"lint": "deno run -A npm:@biomejs/biome lint **/*.ts", | ||
"format": "deno run -A npm:@biomejs/biome format **/*.ts --write", | ||
"check": "deno run -A npm:@biomejs/biome check --apply **/*.ts" | ||
} | ||
} |
Oops, something went wrong.