Skip to content

Commit

Permalink
Variable Render Props (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadenbarlow authored Apr 2, 2024
1 parent 765f596 commit dadb908
Show file tree
Hide file tree
Showing 46 changed files with 2,652 additions and 12,843 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
"**/*.{js,jsx,ts,tsx}": ["prettier --write", "eslint"],
"**/*.{json}": ["prettier --write"],
"**/*.json": ["prettier --write"],
};
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Offers support for localizing using Ditto variants
- Works hand-in-hand with the [Ditto CLI](https://github.com/dittowords/cli)

Ditto also works with many popular 3rd party i18n libraries. Check out [our demo repository](https://github.com/dittowords/ditto-demo) for an example of how Ditto can be integrated into development using [react-i18next](https://react.i18next.com/).
Ditto also works with many popular 3rd party i18n libraries. Check out [our demo repository](https://github.com/dittowords/ditto-react-demo/tree/react-i18next) for an example of how Ditto can be integrated into development using [react-i18next](https://react.i18next.com/).

## Installation

Expand Down Expand Up @@ -240,8 +240,7 @@ If the provided `count` value does not fall in the range associated with a defin
To read more about pluralization and see other examples of how it is used in i18n at large, please refer to the pluralization page in the i18next docs: https://www.i18next.com/translation-function/plurals

### Example

To see a working React app utilizing the [Ditto CLI](https://github.com/dittowords/cli) and `ditto-react`, please refer to the Ditto Demo project: https://github.com/dittowords/ditto-demo.
To see a working React app utilizing the [Ditto CLI](https://github.com/dittowords/cli) and `ditto-react`, please refer to the Ditto Demo project: https://github.com/dittowords/ditto-react-demo.

## Rich Text

Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { presets: ["@babel/preset-env"] };
45 changes: 0 additions & 45 deletions example/package.json

This file was deleted.

Binary file removed example/public/favicon.ico
Binary file not shown.
43 changes: 0 additions & 43 deletions example/public/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions example/public/manifest.json

This file was deleted.

9 changes: 0 additions & 9 deletions example/src/App.test.tsx

This file was deleted.

210 changes: 0 additions & 210 deletions example/src/App.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions example/src/ditto/config.yml

This file was deleted.

Loading

0 comments on commit dadb908

Please sign in to comment.