Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Add plural form module to devtools-modules#1158

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
miriambudayr:plural-form
Jun 3, 2019
Merged

Add plural form module to devtools-modules#1158
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
miriambudayr:plural-form

Conversation

@miriambudayr
Copy link
Copy Markdown
Contributor

@miriambudayr miriambudayr commented May 29, 2019

Associated Issue:
Regarding revision for: https://phabricator.services.mozilla.com/D32881

Jason, you mentioned a simplified version of the plural-form file.

It is easier to keep the functionality of the original plural form module because of the arguments it accepts. PluralForm.get needs the string value (ex. #1 result;#1 results) instead of the key (ex. sourceSearch.resultsSummary2). We calculate and store the string value anyway in our debugger components that use PluralForm so we can just use the function the same way in Launchpad, which means we can pluralize there too.

Thanks!

@jasonLaster jasonLaster merged commit b1bee5e into firefox-devtools:master Jun 3, 2019
@miriambudayr miriambudayr mentioned this pull request Jun 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants