Skip to content

Commit 0bc1aa7

Browse files
committed
feat: add replace string, add i18n pot
1 parent cdbb77d commit 0bc1aa7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

release/.release-it.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
push: release,
2929
},
3030
hooks: {
31-
'before:init': ['yarn i18n'], // run before initialization
31+
'before:init': ['yarn i18n', 'git add .'], // run before initialization
3232
// 'after:[my-plugin]:bump': './bin/my-script.sh', // run after bumping version of my-plugin
3333
'after:bump': [
3434
'yarn build && echo ✅ build success',

replace-string.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ function replaceString(str) {
9898
to: kebabName,
9999
})
100100

101+
replace.sync({
102+
files: [
103+
'./package.json',
104+
],
105+
from: "wp i18n make-pot . languages/wp_react_plugin.pot",
106+
to: `wp i18n make-pot . languages/${snakeName}.pot`,
107+
})
108+
101109
replace.sync({
102110
files: [
103111
'./package.json',

0 commit comments

Comments
 (0)