Skip to content

Commit

Permalink
fix: typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Feb 29, 2024
1 parent 59a33e9 commit f857365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
ignorePatterns: ['dist', 'lib', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is <i>italic</i>.`
const [placeholders, setPlaceholders] = useState(true);

const parsedValue = useMemo(() => {
return getTolgeePlurals(value);
return getTolgeePlurals(value, false);
}, [value]);

const [plurals, setPlurals] = useState(Boolean(parsedValue));
Expand Down
2 changes: 1 addition & 1 deletion src/parser/getTolgeePlurals.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function getText() {
}

function shouldBePlural(text = getText()) {
expect(getTolgeePlurals(text).variants.one).not.toBeUndefined();
expect(getTolgeePlurals(text, false).variants.one).not.toBeUndefined();
}

describe("get tolgee plurals", () => {
Expand Down

0 comments on commit f857365

Please sign in to comment.