fix(release): persist localized in-app release notes
Pass --change-locale values into release-summary.json so first-class locales other than en-US and zh-CN receive in-app changelog copy.
This commit is contained in:
1 parent
c2c805ed54
commit
ed77cbfc82
2 files changed
+14
No files matched your search
@@ -1449,6 +1449,7 @@ const releaseMain = async (options) => {
|
||||
mobileRebuild: mobilePlan.rebuild,
|
||||
changesEn: options.changesEn,
|
||||
changesZh: options.changesZh,
|
||||
localizedChanges: options.localizedChanges,
|
||||
});
|
||||
run("git", ["add", ...versionPaths]);
|
||||
run("git", ["diff", "--cached", "--check"]);
|
||||
|
||||
@@ -417,6 +417,19 @@ describe("release automation", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("persists localized in-app release changes when preparing versions", () => {
|
||||
const releaseSource = readFileSync(new URL("./release.mjs", import.meta.url), "utf8");
|
||||
const updateCall = releaseSource.indexOf("const versionPaths = updateReleaseVersions({");
|
||||
const localizedChanges = releaseSource.indexOf(
|
||||
"localizedChanges: options.localizedChanges",
|
||||
updateCall,
|
||||
);
|
||||
const updateCallEnd = releaseSource.indexOf("});", updateCall);
|
||||
expect(updateCall).toBeGreaterThanOrEqual(0);
|
||||
expect(localizedChanges).toBeGreaterThan(updateCall);
|
||||
expect(localizedChanges).toBeLessThan(updateCallEnd);
|
||||
});
|
||||
|
||||
test("builds a bilingual umbrella Issue", () => {
|
||||
const body = buildIssueBody({
|
||||
changesEn: ["Parallel checks."],
|
||||
|
||||
Reference in new issue
Block a user