Skip to content

codetain/translations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translations

NPM version NPM downloads MIT License

i18n-compatible package with common translations that can be used in your applications right away.

Installation

npm install @codetain/translations

or

yarn add @codetain/translations

Usage

You can simply import translations to your project and mix them with your current translations. When you use i18next you can pass it to resources like this:

import { en, de } from '@codetain/translations';

const resources = {
  en: {
    translation: { ...en, ...yourTranslationsEN }
  },
  de: {
    translation: { ...de, ...yourTranslationsDE }
  }
};

i18n
  .use(initReactI18next)
  .init({
    resources
  });

Contributing

Please follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Work on your fork
    1. Make your changes and additions
      • Most of your changes should be focused on locales/ folder, index.js and/or README.md files.
    2. Add changes to README.md if needed
  4. Commit changes to your own branch
  5. Make sure you merge the latest from "upstream" and resolve conflicts if there is any
  6. Repeat step 3(3) above
  7. Push your work back up to your fork
  8. Submit a Pull request so that we can review your changes

Maintainers

License (MIT)

Copyright (c) 2020 Codetain <developers@codetain.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

i18n-compatible package with common translations for applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published