This package contains internationalization resources for Atlan frontend applications.
npm install @atlanhq/i18n
import i18n, { en, fr, jp, pt, de } from '@atlanhq/i18n';
// Use individual locales
console.log(en.some_key);
// Or use the default export with locale keys
console.log(i18n['en'].some_key);
- English -
en
- French -
fr
- Japanese -
jp
- Portuguese -
pt
- German -
de
.
├── src/ # Source code
│ ├── index.ts # Main entry point and Vue i18n setup
│ └── locales/ # Locale files
│ └── default/ # Default locale directory
│ ├── en.json # English translations
│ ├── fr.json # French translations
│ ├── jp.json # Japanese translations
│ ├── pt.json # Portuguese translations
│ └── de.json # German translations
├── scripts/ # Utility scripts
│ └── translationScript.mjs # Translation automation script
├── .github/ # GitHub configurations
│ └── workflows/ # CI/CD workflows
└── CONTRIBUTING.md # Contribution guidelines
- Clone the repository
- Install dependencies:
npm install
npm run build
- Build the packagenpm test
- Run testsnpm run lint
- Run lintingnpm run translate
- Run translation script
For simple translation fixes, you can contribute directly through GitHub:
- Navigate to the translation file in
src/locales/default/[language-code].json
- Click the pencil icon (✏️) to edit
- Make your changes in GitHub's web editor
- Add a commit message describing your changes
- Click 'Propose changes' - GitHub handles the rest!
For more complex changes:
- Update the translation files in
src/locales/default/<locale>.json
- Run the translation script:
npm run translate
You can contribute translations directly through GitHub's web interface - no local setup required! See the Quick Updates section above.
- Improve Translations: Help us improve existing translations or add new languages
- Report Issues: Report bugs or suggest improvements through GitHub issues
- Submit PRs: Submit pull requests for bug fixes or improvements
Please see our Contributing Guidelines for detailed information about:
- Quick translation updates via GitHub web editor
- Setting up your development environment
- Our coding standards
- The pull request process
- Translation guidelines
This repository is designed to:
- Store and manage translations for multiple projects
- Provide automated scripts for translation key management
- Enable automated workflows for translation updates
- Support community contributions for translation improvements
We welcome contributions from our community! If you'd like to suggest improvements to translations:
- Fork the repository
- Create a new branch for your changes
- Make your changes in the appropriate locale files
- Submit a Pull Request with a clear description of the changes
Please read our Contributing Guidelines for more details.
MIT