Skip to content

Commit

Permalink
feat(i18n2): add i18n2 class base
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar committed Jun 9, 2023
1 parent d7a25f9 commit 4783d6b
Show file tree
Hide file tree
Showing 9 changed files with 540 additions and 0 deletions.
198 changes: 198 additions & 0 deletions core/i18n2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.32.0](https://github.com/AliMD/alwatr/compare/v0.31.0...v0.32.0) (2023-05-27)

**Note:** Version bump only for package @alwatr/i18n

# [0.31.0](https://github.com/AliMD/alwatr/compare/v0.30.0...v0.31.0) (2023-05-08)

### Bug Fixes

- new logger api ([9d83a7d](https://github.com/AliMD/alwatr/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))

### Features

- **i18n:** date method for convert date to active locale ([8b51a97](https://github.com/AliMD/alwatr/commit/8b51a97c780ffd3ed653124f64c0752af779f41c))

### Performance Improvements

- **i18n:** use toLocaleDateString for convert date ([f1efcec](https://github.com/AliMD/alwatr/commit/f1efcecb2480e310d289333d840a0dd27fa3881d))

# [0.30.0](https://github.com/AliMD/alwatr/compare/v0.29.0...v0.30.0) (2023-03-06)

### Features

- **i18n:** l18eReadyPromise ([85c7570](https://github.com/AliMD/alwatr/commit/85c7570d71c3d5b9ec87b0e357ecf41f47f96227))
- **i18n:** make number with fixed decimal ([86e60ec](https://github.com/AliMD/alwatr/commit/86e60ec4c89b8bd485bd32674df286885366ee1b))
- **i18n:** optional number args ([b571385](https://github.com/AliMD/alwatr/commit/b5713853a035e78b06bd4b97cb703e74de0e86ce))
- **i18n:** work background without delay ([2876d00](https://github.com/AliMD/alwatr/commit/2876d009a96e586544fa00798ec35574209ae2a9))

# [0.29.0](https://github.com/AliMD/alwatr/compare/v0.28.0...v0.29.0) (2023-02-10)

### Bug Fixes

- **i18n:** prevent duplicate loader ([711cb56](https://github.com/AliMD/alwatr/commit/711cb5698a4b8887b684be79808b30a40f8e9e8a))
- **i18n:** review and docs ([8574523](https://github.com/AliMD/alwatr/commit/85745235085e6957ab87a9c4e7fb836e73d649f6))

### Features

- **i18n:** add replaceNumber and auto detect setLocale from html ([3413471](https://github.com/AliMD/alwatr/commit/341347149f8685bc259034f5593048aa7db0b927))

# [0.28.0](https://github.com/AliMD/alwatr/compare/v0.27.0...v0.28.0) (2023-01-20)

**Note:** Version bump only for package @alwatr/i18n

# [0.27.0](https://github.com/AliMD/alwatr/compare/v0.26.0...v0.27.0) (2022-12-29)

**Note:** Version bump only for package @alwatr/i18n

# [0.26.0](https://github.com/AliMD/alwatr/compare/v0.25.0...v0.26.0) (2022-12-22)

### Bug Fixes

- set correct path ([d01ce6f](https://github.com/AliMD/alwatr/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
- tsconfig ([e96dcd3](https://github.com/AliMD/alwatr/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))

### Features

- improve accident debugging ([d697e6c](https://github.com/AliMD/alwatr/commit/d697e6c4c7d0a4172f4dba9caf6fbd478f79de9c))
- improve error debugging ([1fba504](https://github.com/AliMD/alwatr/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))

# [0.25.0](https://github.com/AliMD/alwatr/compare/v0.24.1...v0.25.0) (2022-12-07)

**Note:** Version bump only for package @alwatr/i18n

## [0.24.1](https://github.com/AliMD/alwatr/compare/v0.24.0...v0.24.1) (2022-12-01)

### Bug Fixes

- **i18n:** setLocal type ([d801958](https://github.com/AliMD/alwatr/commit/d801958bcc130e93677a1efe2c0c2c6dc420b700))

### Features

- **i18n:** improve i18n types ([cf7d1cb](https://github.com/AliMD/alwatr/commit/cf7d1cb863ac039ec42fadeeb40ac371cfe936c5))

# [0.24.0](https://github.com/AliMD/alwatr/compare/v0.23.0...v0.24.0) (2022-11-28)

### Bug Fixes

- use ~ for package version ([4e027ff](https://github.com/AliMD/alwatr/commit/4e027ff63875e03b088ebcdc1bdf2495f4494eec))

# [0.23.0](https://github.com/AliMD/alwatr/compare/v0.22.1...v0.23.0) (2022-11-23)

**Note:** Version bump only for package @alwatr/i18n

## [0.22.1](https://github.com/AliMD/alwatr/compare/v0.22.0...v0.22.1) (2022-11-21)

**Note:** Version bump only for package @alwatr/i18n

# [0.22.0](https://github.com/AliMD/alwatr/compare/v0.21.0...v0.22.0) (2022-11-20)

**Note:** Version bump only for package @alwatr/i18n

# [0.21.0](https://github.com/AliMD/alwatr/compare/v0.20.0...v0.21.0) (2022-11-13)

**Note:** Version bump only for package @alwatr/i18n

# [0.20.0](https://github.com/AliMD/alwatr/compare/v0.19.0...v0.20.0) (2022-11-05)

**Note:** Version bump only for package @alwatr/i18n

# [0.19.0](https://github.com/AliMD/alwatr/compare/v0.18.0...v0.19.0) (2022-11-01)

### Bug Fixes

- Import error in webpack ([1a52f67](https://github.com/AliMD/alwatr/commit/1a52f67ff2788c51abd13126f34353c26aa669c3))

# [0.18.0](https://github.com/AliMD/alwatr/compare/v0.17.0...v0.18.0) (2022-10-22)

### Bug Fixes

- **i18n:** compatible with new fetch api ([b06a6a5](https://github.com/AliMD/alwatr/commit/b06a6a5958a4be8d84b74187f1c145f70370c06b))

# [0.17.0](https://github.com/AliMD/alwatr/compare/v0.16.1...v0.17.0) (2022-10-21)

**Note:** Version bump only for package @alwatr/i18n

# [0.16.0](https://github.com/AliMD/alwatr/compare/v0.15.0...v0.16.0) (2022-09-08)

**Note:** Version bump only for package @alwatr/i18n

# [0.15.0](https://github.com/AliMD/alwatr/compare/v0.14.0...v0.15.0) (2022-09-01)

**Note:** Version bump only for package @alwatr/i18n

# [0.14.0](https://github.com/AliMD/alwatr/compare/v0.13.0...v0.14.0) (2022-08-19)

**Note:** Version bump only for package @alwatr/i18n

# [0.13.0](https://github.com/AliMD/alwatr/compare/v0.12.0...v0.13.0) (2022-08-06)

**Note:** Version bump only for package @alwatr/i18n

# [0.12.0](https://github.com/AliMD/alwatr/compare/v0.11.0...v0.12.0) (2022-07-22)

### Bug Fixes

- **i18n:** load resources issue ([19b9e39](https://github.com/AliMD/alwatr/commit/19b9e39d5a415e60901c117be3f8f82d09ef8444))

# [0.11.0](https://github.com/AliMD/alwatr/compare/v0.10.1...v0.11.0) (2022-04-16)

**Note:** Version bump only for package @alwatr/i18n

# [0.10.0](https://github.com/AliMD/alwatr/compare/v0.9.0...v0.10.0) (2022-04-02)

**Note:** Version bump only for package @alwatr/i18n

# [0.9.0](https://github.com/AliMD/alwatr/compare/v0.8.0...v0.9.0) (2022-03-22)

### Bug Fixes

- **i18n:** access signal issue ([097b354](https://github.com/AliMD/alwatr/commit/097b354da71b5fb4ce1e15f5cbc4accbe12bb6e1))

# [0.8.0](https://github.com/AliMD/alwatr/compare/v0.7.2...v0.8.0) (2022-03-14)

**Note:** Version bump only for package @alwatr/i18n

## [0.7.2](https://github.com/AliMD/alwatr/compare/v0.7.1...v0.7.2) (2022-03-12)

**Note:** Version bump only for package @alwatr/i18n

# [0.7.0](https://github.com/AliMD/alwatr/compare/v0.6.1...v0.7.0) (2022-03-12)

**Note:** Version bump only for package @alwatr/i18n

## [0.6.1](https://github.com/AliMD/alwatr/compare/v0.6.0...v0.6.1) (2022-03-12)

### Bug Fixes

- **i18n:** package name in readme! ([5325e7f](https://github.com/AliMD/alwatr/commit/5325e7ff5f2b83862221544a4bcd931ed8b9f12f))

# [0.6.0](https://github.com/AliMD/alwatr/compare/v0.5.0...v0.6.0) (2022-03-11)

### Bug Fixes

- alalwatr ([898aa6e](https://github.com/AliMD/alwatr/commit/898aa6ed0888eab9265c83b96a50f1b8c216d143))
- **packages:** duplicate alwatr keyword ([77d4aa2](https://github.com/AliMD/alwatr/commit/77d4aa2105ad47515c3eee251fd6b8c281d0d1fc))

# [0.5.0](https://github.com/AliMD/alwatr/compare/v0.4.0...v0.5.0) (2022-03-11)

**Note:** Version bump only for package @alwatr/i18n

# [0.4.0](https://github.com/AliMD/alwatr/compare/v0.3.0...v0.4.0) (2022-03-11)

### Bug Fixes

- **i18n:** build issue [#75](https://github.com/AliMD/alwatr/issues/75) ([fe7a108](https://github.com/AliMD/alwatr/commit/fe7a108904176e63b8aa7e388d95ee8a90c6b71f))

# [0.3.0](https://github.com/AliMD/alwatr/compare/v0.2.1...v0.3.0) (2022-03-06)

### Features

- **i18n:** implement core methods ([6449bb4](https://github.com/AliMD/alwatr/commit/6449bb42837335c2e2e5b4a75e98139528e2e7da))
- **i18n:** implement initialI18n ([87da5e4](https://github.com/AliMD/alwatr/commit/87da5e46943ba12a8067fcac06c1dcced1e6fb92))
- **i18n:** localize method ([544edfd](https://github.com/AliMD/alwatr/commit/544edfdd1bc52befab6afe4cbfb62ce1638aff2d))
- **i18n:** start new package for i18n/l10n ([88a6c28](https://github.com/AliMD/alwatr/commit/88a6c28ad038ed02ca45128378e669f6d9c6949d))
3 changes: 3 additions & 0 deletions core/i18n2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Alwatr Internationalization - `@alwatr/i18n2`

Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.
44 changes: 44 additions & 0 deletions core/i18n2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@alwatr/i18n2",
"version": "0.32.0",
"description": "Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.",
"keywords": [
"i18n",
"internationalization",
"l10n",
"localization",
"typescript",
"esm",
"alwatr"
],
"main": "index.js",
"type": "module",
"types": "index.d.ts",
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)",
"license": "MIT",
"private": "true",
"files": [
"**/*.{d.ts.map,d.ts,js.map,js,html,md}"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/AliMD/alwatr",
"directory": "core/i18n"
},
"homepage": "https://github.com/AliMD/alwatr/tree/main/core/i18n#readme",
"bugs": {
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@alwatr/logger": "^0.32.0",
"@alwatr/math": "^0.32.0",
"@alwatr/signal2": "^0.32.0",
"tslib": "^2.5.3"
},
"devDependencies": {
"@alwatr/type": "^0.32.0"
}
}
1 change: 1 addition & 0 deletions core/i18n2/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './l10n.js';
Loading

0 comments on commit 4783d6b

Please sign in to comment.