Skip to content

Commit

Permalink
fix: package name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Oct 30, 2024
1 parent 8067e8a commit f6f7fa4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# mi18n [![npm version](https://badge.fury.io/js/mi18n.svg)](https://badge.fury.io/js/mi18n)
# i18n ![NPM Version](https://img.shields.io/npm/v/%40draggable%2Fi18n)


Add multi-lingual support to any JavaScript app or module with this light-weight package.

Expand All @@ -15,7 +16,7 @@ Add multi-lingual support to any JavaScript app or module with this light-weight
## Usage

```javascript
import { I18n } from 'mi18n'
import { I18n } from '@draggable/i18n'

const i18nOptions = {
extension: '.lang', // extnsion used by your language files, defaults to ".lang"
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "mi18n",
"name": "@draggable/i18n",
"version": "1.0.3",
"description": "A simple yet robust i18n solution for universal JavaScript apps.",
"main": "dist/mi18n.es.min.js",
"main": "dist/i18n.es.min.js",
"type": "module",
"files": [
"dist/"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "node --test src/**/*.test.js",
"test:watch": "yarn test -- --reporter min --watch",
Expand All @@ -18,7 +21,7 @@
"preview": "vite preview"
},
"repository": {
"url": "https://github.com/Draggable/mi18n",
"url": "https://github.com/Draggable/i18n",
"type": "git"
},
"keywords": [
Expand All @@ -34,9 +37,9 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Draggable/mi18n/issues"
"url": "https://github.com/Draggable/i18n/issues"
},
"homepage": "https://github.com/Draggable/mi18n",
"homepage": "https://github.com/Draggable/i18n",
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@commitlint/cli": "^19.5.0",
Expand Down
4 changes: 2 additions & 2 deletions src/mi18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const DEFAULT_CONFIG = {
}

/**
* Main mi18n class
* Main i18n class
* @class I18N
* @classdesc methods and data store for mi18n
* @classdesc methods and data store for i18n
*/
export class I18N {
/**
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default defineConfig({
emptyOutDir: true,
lib: {
entry: 'src/mi18n.js',
name: 'mi18n',
name: 'i18n',
formats: ['es', 'cjs', 'umd', 'iife'],
fileName: format => `mi18n.${format}.min.js`,
fileName: format => `i18n.${format}.min.js`,
outDir: 'dist',
},
minify: 'terser',
Expand Down

0 comments on commit f6f7fa4

Please sign in to comment.