2.8.0 • Published 1 month ago

@lskjs/t v2.8.0

Weekly downloads
160
License
MIT
Repository
github
Last release
1 month ago

LSK T

React components for internationalization

LSK logo NPM version Package size License LSK Chat on Telegram

Just press on t and take a result from @lskjs/t. Or in reverse.

npm.io

Installation and usage

The easiest way to use is to install it from npm and build it into your app with Webpack.

npm install @lskjs/t

Then use it in your app:

import t from '@lskjs/t';

const App = (
  <>
    <T name="page.header.title" />
    <T name="page.header.subtitle" />
  </>
);

For more examples and usage, please refer

Examples

import T from '@lskjs/t/T';
import withT from '@lskjs/t/withT';

export default () => (
  <ButtonGroup>
    <Button variant="primary">Primary button</Button>
    <Button variant="outline-secondary">Secondary Button</Button>
    <Button as="input" type="submit" value="Submit Button" />
    <Button size="lg">Large Button</Button>
    <Button block>Block Button</Button>
    <Button active>Active Button</Button>
    <Button disabled>Disabled Button</Button>
    <Button type="primary" shape="circle" icon={<SearchOutlined />} />
  </ButtonGroup>
)

See the more examples in Storybook.

More info

Links

Contact

Contributors ✨

Thanks goes to these wonderful people (emoji key):

License

This project is licensed under the MIT License - see the LICENSE file for details

Inspired by

  • i18next
  • mobx
  • mobx-provider

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
2.8.0

1 month ago

2.7.5

2 months ago

2.7.0

2 years ago

2.6.3

2 years ago

2.6.1

3 years ago

2.5.3

3 years ago

2.5.2

3 years ago

2.4.0-beta.1

3 years ago

2.3.0-beta.15

3 years ago

2.3.0-beta.17

3 years ago

2.3.0-beta.10

3 years ago

2.3.0-beta.7

3 years ago

2.3.0-beta.6

3 years ago

2.3.0-beta.4

3 years ago

1.36.11

3 years ago

2.0.0-beta.4

3 years ago

2.0.0-beta.2

3 years ago

1.36.10

3 years ago

1.34.2

3 years ago

1.34.1

3 years ago

1.32.4

3 years ago

1.31.3

4 years ago

1.30.2

4 years ago

1.29.0

4 years ago

1.28.0

4 years ago

1.27.4

4 years ago

1.26.3

4 years ago

1.20.5

4 years ago

1.20.4

4 years ago

1.19.0

4 years ago

1.19.1

4 years ago

1.15.6

4 years ago

1.15.3

4 years ago

1.15.0

4 years ago

1.1.105

4 years ago

1.11.0

4 years ago

1.1.96

4 years ago

1.7.1

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.1.91

4 years ago

1.1.77

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago