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

Remove locales from production if they fall below 100% translation? #458

Description

@pdehaan

Apparently my script for linting production locales is "weak" at best, and only looked at l10n errors and not "missingEntity"...

Fixing my script locally and rerunning gives me the following output:

$ npm run lint-locales:prod

> firefox-send@1.0.4 lint-locales:prod /Users/pdehaan/dev/github/mozilla/something-awesome
> npm run lint-locales -- --production


> firefox-send@1.0.4 lint-locales /Users/pdehaan/dev/github/mozilla/something-awesome
> node scripts/lint-locales "--production"

compare-locales l10n.toml . az ca cs cy de dsb el en-US es-CL es-ES es-MX fr fy-NL hsb hu id it ja kab ms nb-NO nl nn-NO pt-BR pt-PT ru sk sl sr sv-SE tr uk zh-CN zh-TW --data=json

cs/send.ftl
- missing entity: notSupportedLink

cy/send.ftl
- missing entity: notSupportedLink

es-ES/send.ftl
- missing entity: notSupportedLink

kab/send.ftl
- missing entity: notSupportedLink

sv-SE/send.ftl
- missing entity: notSupportedLink

I don't know what our threshold for production locales is. Is 1-2 missing strings acceptable, or should we remove anything from package.json's availableLanguages array if it falls below 100%.

Ref: #414, which added the new notSupportedLink string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions