-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adding PWA for doc site - General PG updates - Enabling i18n section with example
- Loading branch information
1 parent
01bc2f5
commit c9d3d67
Showing
13 changed files
with
731 additions
and
153 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
id: internationalization | ||
title: Internationalization | ||
--- | ||
|
||
import '@djthoms/pretty-checkbox/src/rtl.scss'; | ||
|
||
PCR doesn't contain any locale-specific strings that are rendered in the browser. Since you, the super awesome user of PCR, provides all the content, it seamlessly integrates into your i18n/l10n/g11n solution :smile: | ||
|
||
## RTL Usage | ||
|
||
PCR RTL usage requires no extra config for support; however, you **do** need to import one extra file from `@djthomps/pretty-checkbox`: | ||
|
||
```js title="index.js" | ||
import '@djthoms/pretty-checkbox/src/pretty-checkbox.scss'; | ||
import '@djthoms/pretty-checkbox/src/rtl.scss'; | ||
``` | ||
|
||
In the example, below we're using the `direction` property to achiev RTL direction, | ||
but in most cases you'd add the `dir` attribute to the `html` tag directly. | ||
|
||
```jsx live | ||
<div style={{ direction: 'rtl' }}> | ||
<Checkbox>مرحبا</Checkbox> | ||
</div> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"short_name": "PCR", | ||
"name": "Pretty Checkbox React", | ||
"description": "Pretty Checkbox React", | ||
"icons": [ | ||
{ | ||
"src": "/img/logo.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "/images/logo.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"background_color": "#3367D6", | ||
"display": "standalone", | ||
"scope": "/", | ||
"theme_color": "#3367D6" | ||
} |
Oops, something went wrong.