Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plural type name memoization #158

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

metabacalhau
Copy link
Contributor

This PR introduces plural type name memoization since there is no need to search for it every time we do a phrase transformation if locale doesn't change.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
test/index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@ljharb ljharb force-pushed the plural-type-name-memoization branch from 43feac9 to 5dc3179 Compare July 26, 2021 20:12
@ljharb
Copy link
Collaborator

ljharb commented Jul 26, 2021

I've just rebased this; please feel free to add the test on top of it.

@ljharb ljharb marked this pull request as draft August 7, 2021 16:59
@metabacalhau metabacalhau marked this pull request as ready for review August 12, 2021 19:54
@ljharb ljharb force-pushed the plural-type-name-memoization branch 2 times, most recently from ba97e34 to 4683071 Compare August 13, 2021 22:00
index.js Outdated Show resolved Hide resolved
@ljharb ljharb merged commit 4683071 into airbnb:master Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants