Vespucci Multiplayer - i18n Integration
A simple library used to handle our multi-language needs.
⚠️ Important! This is a very simple implementation of i18n used in Vespucci Multiplayer projects
📦
Installation
Use
github:vespucci-mp/i18n#build
to latest build
- Using yarn:
yarn add github:vespucci-mp/i18n#v0.0.1
- Using npm:
npm i github:vespucci-mp/i18n#v0.0.1
- Using pnpm:
pnpm add github:vespucci-mp/i18n#v0.0.1
🤓
Usage
import { createLanguagePack, getLanguagePack } from '@vmp/i18n';
createLanguagePack(`Login`, {
WELCOME_USER: {
EN: ({ name }) => `Welcome ${name}!`
}
});
const lang = getLanguagePack('Login', 'EN');
console.log(lang.get('WELCOME_USER', { name: 'Vatto ' }));
👨💻
Contributing
To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.
- Fork / Clone and select the
main
branch. - Create a new branch in your fork.
- Make your changes.
- Commit your changes, and push them.
- Submit a Pull Request here!
📋
License
This project is licensed under the MIT License - see the LICENSE file for details.