diff --git a/.github/workflows/generate-messages.yml b/.github/workflows/generate-messages.yml new file mode 100644 index 00000000000..879eddd8f51 --- /dev/null +++ b/.github/workflows/generate-messages.yml @@ -0,0 +1,36 @@ +name: Generate messages +on: + pull_request: + branches: + - develop +jobs: + generate-messages: + runs-on: ubuntu-latest + strategy: + matrix: + node-versions: [20.x] + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref || github.ref_name }} + fetch-depth: 0 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/checkout@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Checkout current branch + run: git checkout ${{ github.head_ref || github.ref_name }} + - name: Generate messages + run: npm run extract-i18n + - name: Commit messages + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add src/messages.xlf + git commit -m "Updated messages" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/messages.xlf b/src/messages.xlf index 35cb9b8ebc0..e11815c9b7d 100644 --- a/src/messages.xlf +++ b/src/messages.xlf @@ -17168,7 +17168,7 @@ Are you ready to receive feedback on this answer? src/assets/wise5/directives/summary-display/summary-display.component.ts - 672 + 548 @@ -19359,11 +19359,11 @@ Warning: This will delete all existing choices and buckets in this component. src/assets/wise5/directives/summary-display/summary-display.component.ts - 378 + 293 src/assets/wise5/directives/summary-display/summary-display.component.ts - 480 + 356 @@ -19390,11 +19390,11 @@ Warning: This will delete all existing choices and buckets in this component. src/assets/wise5/directives/summary-display/summary-display.component.ts - 378 + 293 src/assets/wise5/directives/summary-display/summary-display.component.ts - 484 + 360 @@ -21245,56 +21245,56 @@ If this problem continues, let your teacher know and move on to the next activit Your Response src/assets/wise5/directives/summary-display/summary-display.component.ts - 509 + 385 Your Score src/assets/wise5/directives/summary-display/summary-display.component.ts - 511 + 387 Period Responses src/assets/wise5/directives/summary-display/summary-display.component.ts - 518 + 394 Period Scores src/assets/wise5/directives/summary-display/summary-display.component.ts - 523 + 399 Class Responses src/assets/wise5/directives/summary-display/summary-display.component.ts - 532 + 408 Class Scores src/assets/wise5/directives/summary-display/summary-display.component.ts - 537 + 413 % Responded (/) src/assets/wise5/directives/summary-display/summary-display.component.ts - 548 + 424 The student will see a graph of their individual data here. src/assets/wise5/directives/teacher-summary-display/teacher-summary-display.component.ts - 50 + 46