-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9c170e5
Showing
19 changed files
with
9,988 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
engines: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.js" | ||
exclude_paths: | ||
- dist/ | ||
- node_modules/ | ||
- spec/ | ||
- demo/ | ||
- docs/ |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
CI: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 23 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Test | ||
run: npm test | ||
- name: Build | ||
run: npm run build | ||
- name: Publish | ||
if: success() | ||
run: npx semantic-release |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: pull_request | ||
name: Pull Request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 23 | ||
- name: Install dependencies | ||
env: | ||
CI: true | ||
run: npm install | ||
- name: Test | ||
run: npm test |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src | ||
tools |
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
## [1.0.6](https://github.com/Draggable/i18n/compare/v1.0.5...v1.0.6) (2024-10-30) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* lefthook.yml ([957d471](https://github.com/Draggable/i18n/commit/957d47146a7574fcd9db2989e090bfb52bf2ba20)) | ||
* release not generated because of commitlint ([78d65b9](https://github.com/Draggable/i18n/commit/78d65b992d1c29d7b2d20221723b49725224d35f)) | ||
* release not generated because of commitlint ([c671fb9](https://github.com/Draggable/i18n/commit/c671fb9953989c42969998730d0490b76128434c)) | ||
|
||
## [1.0.5](https://github.com/Draggable/i18n/compare/v1.0.4...v1.0.5) (2024-10-30) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* release not generated because of commitlint ([5a909c0](https://github.com/Draggable/i18n/commit/5a909c03b474c83ce9a1ba985d36bb71f4909b6e)) | ||
|
||
## [1.0.4](https://github.com/Draggable/i18n/compare/v1.0.3...v1.0.4) (2024-10-30) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* package name ([f6f7fa4](https://github.com/Draggable/i18n/commit/f6f7fa43f37c5b0b403d21eb02e108c7f80e2a3a)) | ||
|
||
## [1.0.3](https://github.com/Draggable/mi18n/compare/v1.0.2...v1.0.3) (2024-10-20) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* readme ([af5ee93](https://github.com/Draggable/mi18n/commit/af5ee93ba8477f033edea79082958dff845a4a93)) | ||
|
||
## [1.0.2](https://github.com/Draggable/mi18n/compare/v1.0.1...v1.0.2) (2024-10-20) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* add usage to readme ([20aaca1](https://github.com/Draggable/mi18n/commit/20aaca1b5742c243f006ee60bba5edf8e05e7cc5)) | ||
|
||
## [1.0.1](https://github.com/Draggable/mi18n/compare/v1.0.0...v1.0.1) (2024-10-20) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* remove unused file ([166a63a](https://github.com/Draggable/mi18n/commit/166a63a92d2cef45fbd5e00b89cbea7fc5e87fee)) | ||
|
||
# [1.0.0](https://github.com/Draggable/mi18n/compare/v0.4.8...v1.0.0) (2024-10-20) | ||
|
||
|
||
### chore | ||
|
||
* update module ([#23](https://github.com/Draggable/mi18n/issues/23)) ([5541a9f](https://github.com/Draggable/mi18n/commit/5541a9fda5564bd12eff0d9fe1513cfd0039a4e9)) | ||
|
||
|
||
### BREAKING CHANGES | ||
|
||
* the build outputs have changed | ||
|
||
* chore: remove unused files | ||
|
||
* chore: update checkout from v2 to v4 | ||
|
||
## [0.4.8](https://github.com/Draggable/mi18n/compare/v0.4.7...v0.4.8) (2018-11-05) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **getValue:** Add reminder to add tests for getValue ([#22](https://github.com/Draggable/mi18n/issues/22)) ([f948d9c](https://github.com/Draggable/mi18n/commit/f948d9c)) | ||
|
||
## [0.4.7](https://github.com/Draggable/mi18n/compare/v0.4.6...v0.4.7) (2018-11-02) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **getValue:** Add reminder to add tests for getValue, hopefulyl trigger a release ([4a7fa02](https://github.com/Draggable/mi18n/commit/4a7fa02)) | ||
|
||
## [0.4.6](https://github.com/Draggable/mi18n/compare/v0.4.5...v0.4.6) (2018-08-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **env:** update env vars ([41f2531](https://github.com/Draggable/mi18n/commit/41f2531)) | ||
|
||
## [0.4.5](https://github.com/Draggable/mi18n/compare/v0.4.4...v0.4.5) (2018-08-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **npm:** dist files should be in npm release ([c7c8494](https://github.com/Draggable/mi18n/commit/c7c8494)) | ||
|
||
## [0.4.4](https://github.com/Draggable/mi18n/compare/v0.4.3...v0.4.4) (2018-08-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **npm:** files missing from published npm ([821c570](https://github.com/Draggable/mi18n/commit/821c570)) | ||
|
||
## [0.4.3](https://github.com/Draggable/mi18n/compare/v0.4.2...v0.4.3) (2018-08-14) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **ci:** build not completing ([7dea86a](https://github.com/Draggable/mi18n/commit/7dea86a)) | ||
* **ci:** do not install travis-deploy-once globally ([90f024d](https://github.com/Draggable/mi18n/commit/90f024d)) | ||
* **ci:** move after_success to get branches tagged and hopefully auto-updated changelog ([ce8d761](https://github.com/Draggable/mi18n/commit/ce8d761)) | ||
* **ci:** Update travis-ci config ([378a072](https://github.com/Draggable/mi18n/commit/378a072)) | ||
* **ci:** Use multiple stages for travis-ci ([e8e43e7](https://github.com/Draggable/mi18n/commit/e8e43e7)) | ||
* **now:** deploy ([31eac82](https://github.com/Draggable/mi18n/commit/31eac82)) | ||
* **semantic-release:** add required semantic-release plugins ([2af43b2](https://github.com/Draggable/mi18n/commit/2af43b2)) | ||
* **webpack:** absolute url no longer needed in webpack, remove unused files, bithound is dead ([0318e10](https://github.com/Draggable/mi18n/commit/0318e10)) | ||
* **webpack:** Update modules and webpack config, add test case for string with vars ([7766316](https://github.com/Draggable/mi18n/commit/7766316)) | ||
|
||
# mi18n Changelog | ||
|
||
- v0.4.3 - Fix now.sh deploy | ||
- v0.4.2 - Add semantic release script, fix deploy bug, update changelog.md | ||
- v0.4.1 - Change `preloaded` to override, fix bug where overrides would replace loaded languages | ||
- v0.3.4 - Merge pull request #8 from kevinchappell/chore/update-test | ||
- v0.3.3 - Merge pull request #3 from Draggable/async | ||
- v0.3.2 - Merge pull request #2 from Draggable/hotfix/update-tagger | ||
- v0.3.1 - Chore/Bugfix: Changed how default locale is defined |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"vcs": { | ||
"clientKind": "git", | ||
"enabled": true, | ||
"useIgnoreFile": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false | ||
} | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"ignore": [], | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 120 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "asNeeded" | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"indentStyle": "space" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pkg from './package.json' | ||
|
||
export const isProduction = process.env.NODE_ENV === 'production' | ||
export const shortName = pkg.name.replace(/^@.*\//, '') | ||
export const camelCaseName = shortName.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase()) | ||
export const version = pkg.version | ||
export const pkgName = pkg.name | ||
|
||
export const bannerTemplate = ` | ||
/** | ||
${pkg.name} - ${pkg.homepage} | ||
Version: ${pkg.version} | ||
Author: ${pkg.author} | ||
*/ | ||
` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pre-push: | ||
parallel: true | ||
commands: | ||
run-tests: | ||
run: npm test | ||
|
||
pre-commit: | ||
parallel: true | ||
commands: | ||
lint: | ||
run: npx lint-staged | ||
|
||
commit-msg: | ||
commands: | ||
commitlint: | ||
run: npx commitlint --edit $GIT_PARAMS |
Oops, something went wrong.