From 2579472756199b792668097c80b395f8efaef310 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 18 Apr 2022 12:33:18 -0400 Subject: [PATCH] =?UTF-8?q?[=F0=9F=94=A5AUDIT=F0=9F=94=A5]=20Export=20some?= =?UTF-8?q?=20Flow=20types=20from=20the=20i18n=20package.=20(#223)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🖍 _This is an audit!_ 🖍 ## Summary: This is needed by some code in Webapp. Issue: FEI-4434 ## Test plan: Author: jeresig Auditors: kevinbarabash Required Reviewers: Approved By: kevinbarabash Checks: ❌ Test (macOS-latest, 16.x), ✅ Test (macOS-latest, 12.x), ✅ Test (ubuntu-latest, 12.x), ✅ codecov/project, ✅ CodeQL, ✅ Lint, flow, and coverage check (ubuntu-latest, 16.x), ⏭ dependabot, ✅ gerald, ✅ Analyze (javascript), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 16.x) Pull Request URL: https://github.com/Khan/wonder-stuff/pull/223 --- .changeset/two-pans-fail.md | 5 +++++ packages/wonder-stuff-i18n/src/index.js | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/two-pans-fail.md diff --git a/.changeset/two-pans-fail.md b/.changeset/two-pans-fail.md new file mode 100644 index 00000000..c58b2edf --- /dev/null +++ b/.changeset/two-pans-fail.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/wonder-stuff-i18n": minor +--- + +Export some Flow types from the i18n package. diff --git a/packages/wonder-stuff-i18n/src/index.js b/packages/wonder-stuff-i18n/src/index.js index 011bb978..f0d67925 100644 --- a/packages/wonder-stuff-i18n/src/index.js +++ b/packages/wonder-stuff-i18n/src/index.js @@ -12,3 +12,6 @@ export { translateString, } from "./utils/i18n-utils.js"; export {getEmojiForLocale} from "./utils/emoji-for-locale.js"; + +export type {ExtractedString} from "./utils/extract-i18n.js"; +export type {TranslatedLocaleStrings} from "./utils/i18n-utils.js";