React components for internationalization
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
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.
Igor Suvorov 💻 🎨 🤔 |
Thanks goes to these wonderful people (emoji key):
This project is licensed under the MIT License - see the LICENSE file for details
- i18next
- mobx
- mobx-provider
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request