Merge pull request #639 from frappe/develop
chore: Merge develop to main
This commit is contained in:
commit
189e3dc63b
40
.github/helper/update_pot_file.sh
vendored
Normal file
40
.github/helper/update_pot_file.sh
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd ~ || exit
|
||||
|
||||
echo "Setting Up Bench..."
|
||||
|
||||
pip install frappe-bench
|
||||
bench -v init frappe-bench --skip-assets --skip-redis-config-generation --python "$(which python)" --frappe-branch "${BASE_BRANCH}"
|
||||
cd ./frappe-bench || exit
|
||||
|
||||
echo "Get FCRM..."
|
||||
bench get-app --skip-assets crm "${GITHUB_WORKSPACE}"
|
||||
|
||||
echo "Generating POT file..."
|
||||
bench generate-pot-file --app crm
|
||||
|
||||
cd ./apps/crm || exit
|
||||
|
||||
echo "Configuring git user..."
|
||||
git config user.email "developers@erpnext.com"
|
||||
git config user.name "frappe-pr-bot"
|
||||
|
||||
echo "Setting the correct git remote..."
|
||||
# Here, the git remote is a local file path by default. Let's change it to the upstream repo.
|
||||
git remote set-url upstream https://github.com/frappe/crm.git
|
||||
|
||||
echo "Creating a new branch..."
|
||||
isodate=$(date -u +"%Y-%m-%d")
|
||||
branch_name="pot_${BASE_BRANCH}_${isodate}"
|
||||
git checkout -b "${branch_name}"
|
||||
|
||||
echo "Commiting changes..."
|
||||
git add crm/locale/main.pot
|
||||
git commit -m "chore: update POT file"
|
||||
|
||||
gh auth setup-git
|
||||
git push -u upstream "${branch_name}"
|
||||
|
||||
echo "Creating a PR..."
|
||||
gh pr create --fill --base "${BASE_BRANCH}" --head "${branch_name}" -R frappe/crm
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
||||
check-latest: true
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml', '**/setup.py', '**/setup.cfg') }}
|
||||
@ -63,7 +63,7 @@ jobs:
|
||||
id: yarn-cache-dir-path
|
||||
run: 'echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT'
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
|
||||
35
.github/workflows/generate-pot-file.yml
vendored
Normal file
35
.github/workflows/generate-pot-file.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: Regenerate POT file (translatable strings)
|
||||
on:
|
||||
schedule:
|
||||
# 9:30 UTC => 3 PM IST Sunday
|
||||
- cron: "30 9 * * 0"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
regenerate-pot-file:
|
||||
name: Regenerate POT file
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
branch: ["develop"]
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ matrix.branch }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Run script to update POT file
|
||||
run: |
|
||||
bash ${GITHUB_WORKSPACE}/.github/helper/update_pot_file.sh
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
BASE_BRANCH: ${{ matrix.branch }}
|
||||
8
crm/crowdin.yml
Normal file
8
crm/crowdin.yml
Normal file
@ -0,0 +1,8 @@
|
||||
files:
|
||||
- source: /crm/locale/main.pot
|
||||
translation: /crm/locale/%two_letters_code%.po
|
||||
pull_request_title: "chore: sync translations from crowdin"
|
||||
pull_request_labels:
|
||||
- translation
|
||||
commit_message: "chore: %language% translations"
|
||||
append_commit_message: false
|
||||
4051
crm/locale/ar.po
Normal file
4051
crm/locale/ar.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/bs.po
Normal file
4051
crm/locale/bs.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/de.po
Normal file
4051
crm/locale/de.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/eo.po
Normal file
4051
crm/locale/eo.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/es.po
Normal file
4051
crm/locale/es.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/fa.po
Normal file
4051
crm/locale/fa.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/fr.po
Normal file
4051
crm/locale/fr.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/hr.po
Normal file
4051
crm/locale/hr.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/hu.po
Normal file
4051
crm/locale/hu.po
Normal file
File diff suppressed because it is too large
Load Diff
4049
crm/locale/main.pot
Normal file
4049
crm/locale/main.pot
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/pl.po
Normal file
4051
crm/locale/pl.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/pt.po
Normal file
4051
crm/locale/pt.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/ru.po
Normal file
4051
crm/locale/ru.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/sv.po
Normal file
4051
crm/locale/sv.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/th.po
Normal file
4051
crm/locale/th.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/tr.po
Normal file
4051
crm/locale/tr.po
Normal file
File diff suppressed because it is too large
Load Diff
4051
crm/locale/zh.po
Normal file
4051
crm/locale/zh.po
Normal file
File diff suppressed because it is too large
Load Diff
3
crowdin.yml
Normal file
3
crowdin.yml
Normal file
@ -0,0 +1,3 @@
|
||||
files:
|
||||
- source: /crm/locale/main.pot
|
||||
translation: /crm/locale/%two_letters_code%.po
|
||||
Loading…
x
Reference in New Issue
Block a user