Skip to content

Commit

Permalink
feat: reactor, merge latest core from next-intl
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Aug 31, 2024
1 parent e7c70e5 commit 5d21216
Show file tree
Hide file tree
Showing 39 changed files with 1,676 additions and 466 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-items-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/translator": minor
---

reactor, merge latest core from `next-intl`
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ expect(
})
).toBe('简体中文');
```

## Reference extract core code from `next-intl` in order to run nodejs

https://next-intl-docs.vercel.app/docs/usage/dates-times
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
}
},
"dependencies": {
"intl-messageformat": "10.5.14"
"@formatjs/fast-memoize": "^2.2.0",
"intl-messageformat": "^10.5.14"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/intl-error.ts → src/IntlError.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum IntlErrorCode {
MISSING_MESSAGE = 'MISSING_MESSAGE',
MISSING_FORMAT = 'MISSING_FORMAT',
ENVIRONMENT_FALLBACK = 'ENVIRONMENT_FALLBACK',
INSUFFICIENT_PATH = 'INSUFFICIENT_PATH',
INVALID_MESSAGE = 'INVALID_MESSAGE',
INVALID_KEY = 'INVALID_KEY',
Expand Down
212 changes: 0 additions & 212 deletions src/create-base-translator.ts

This file was deleted.

Loading

0 comments on commit 5d21216

Please sign in to comment.