Skip to content

Commit

Permalink
chore: rename module name
Browse files Browse the repository at this point in the history
  • Loading branch information
fzn0x committed Jul 21, 2024
1 parent 6172aca commit 4c913e4
Show file tree
Hide file tree
Showing 14 changed files with 299 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ about: Something is not working as it should

- [ ] I'm willing to submit a pull request
- [ ] I have read the documentation.
- [ ] I have tried my code with the latest version of npm and [fasti18n](https://github.com/fzn0x/fasti18n).
- [ ] I have tried my code with the latest version of npm and [yoi18n](https://github.com/fzn0x/yoi18n).
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2-feature-request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: '⭐ Feature request'
about: Suggest a feature for fasti18n
about: Suggest a feature for yoi18n
---

#### What feature are you want to add?
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<hr />

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/fzn0x/fasti18n/ci.yml?branch=main)](https://github.com/fzn0x/fasti18n/actions)
[![GitHub](https://img.shields.io/github/license/fzn0x/fasti18n)](https://github.com/fzn0x/fasti18n/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/fasti18n)](https://www.npmjs.com/package/fasti18n)
[![npm](https://img.shields.io/npm/dm/fasti18n)](https://www.npmjs.com/package/fasti18n)
[![JSR](https://jsr.io/badges/@fzn0x/fasti18n)](https://jsr.io/@fzn0x/fasti18n)
[![Bundle Size](https://img.shields.io/bundlephobia/min/fasti18n)](https://bundlephobia.com/result?p=fasti18n)
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/fasti18n)](https://bundlephobia.com/result?p=fasti18n)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/fzn0x/fasti18n)](https://github.com/fzn0x/fasti18n/pulse)
[![GitHub last commit](https://img.shields.io/github/last-commit/fzn0x/fasti18n)](https://github.com/fzn0x/fasti18n/commits/main)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/fzn0x/yoi18n/ci.yml?branch=main)](https://github.com/fzn0x/yoi18n/actions)
[![GitHub](https://img.shields.io/github/license/fzn0x/yoi18n)](https://github.com/fzn0x/yoi18n/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/yoi18n)](https://www.npmjs.com/package/yoi18n)
[![npm](https://img.shields.io/npm/dm/yoi18n)](https://www.npmjs.com/package/yoi18n)
[![JSR](https://jsr.io/badges/@fzn0x/yoi18n)](https://jsr.io/@fzn0x/yoi18n)
[![Bundle Size](https://img.shields.io/bundlephobia/min/yoi18n)](https://bundlephobia.com/result?p=yoi18n)
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/yoi18n)](https://bundlephobia.com/result?p=yoi18n)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/fzn0x/yoi18n)](https://github.com/fzn0x/yoi18n/pulse)
[![GitHub last commit](https://img.shields.io/github/last-commit/fzn0x/yoi18n)](https://github.com/fzn0x/yoi18n/commits/main)

<hr />

Expand All @@ -28,10 +28,10 @@
## Installation

```bash
bun install fasti18n
npm install fasti18n
yarn add fasti18n
pnpm install fasti18n
bun install yoi18n
npm install yoi18n
yarn add yoi18n
pnpm install yoi18n
```

## Usage
Expand Down Expand Up @@ -74,7 +74,7 @@ Creates `lang.json` and `lang-admin.json` files:

```js
// lang.js
const i18n = require('fasti18n')
const i18n = require('yoi18n')

const t = i18n.init({
namespace: {
Expand Down Expand Up @@ -120,7 +120,7 @@ console.log(t('admin.hello')) // "hello" from admin namespace,

```js
// lang.ts
import i18n from 'fasti18n'
import i18n from 'yoi18n'

const t = i18n.init({
namespace: {
Expand Down Expand Up @@ -157,7 +157,7 @@ console.log(t('admin.hello')) // "hello" from admin namespace,
### React

```jsx
import i18n from 'fasti18n'
import i18n from 'yoi18n'

const t = i18n.init({
namespace: {
Expand Down Expand Up @@ -196,4 +196,4 @@ export default function LanguageSwitch({ lang, ns }) {

## License

fasti18n is [MIT Licensed](./LICENSE) and Open Source Software by [@fzn0x](https://github.com/fzn0x)
yoi18n is [MIT Licensed](./LICENSE) and Open Source Software by [@fzn0x](https://github.com/fzn0x)
140 changes: 138 additions & 2 deletions browser/fasti18n-browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c913e4

Please sign in to comment.