Merge pull request #3910 from kkhys/fix/ja-jp-breakdown
Some checks failed
Node.js CI / build (push) Has been cancelled

Fix Japanese translation for label 'breakdown'
This commit is contained in:
Mike Cao 2025-12-20 21:39:29 -08:00 committed by GitHub
commit 4c0c9e6aa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1050 additions and 1032 deletions

View file

@ -3,13 +3,18 @@ name: Create docker images
on: on:
push: push:
tags: tags:
- 'v*.*.*' - "v*.*.*"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: 'Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)' description: "Optional image version (e.g. 3.0.0, v3.0.0, or 3.0.0-beta.1)"
required: false required: false
default: '' default: ""
include_latest:
description: "Include latest tag"
required: false
type: boolean
default: true
jobs: jobs:
build: build:
@ -22,6 +27,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -46,6 +54,7 @@ jobs:
INPUT="${{ github.event.inputs.version }}" INPUT="${{ github.event.inputs.version }}"
REF_TYPE="${{ github.ref_type }}" REF_TYPE="${{ github.ref_type }}"
REF_NAME="${{ github.ref_name }}" REF_NAME="${{ github.ref_name }}"
INCLUDE_LATEST="${{ github.event.inputs.include_latest }}"
# Determine version source # Determine version source
if [[ -n "$INPUT" ]]; then if [[ -n "$INPUT" ]]; then
@ -56,7 +65,8 @@ jobs:
VERSION="" VERSION=""
fi fi
TAGS="" GHCR_TAGS=""
DOCKER_TAGS=""
if [[ -n "$VERSION" ]]; then if [[ -n "$VERSION" ]]; then
MAJOR=$(echo "$VERSION" | cut -d. -f1) MAJOR=$(echo "$VERSION" | cut -d. -f1)
@ -64,37 +74,54 @@ jobs:
if [[ "$VERSION" == *-* ]]; then if [[ "$VERSION" == *-* ]]; then
# prerelease: only version tag # prerelease: only version tag
TAGS="$VERSION" GHCR_TAGS="ghcr.io/${{ github.repository }}:$VERSION"
DOCKER_TAGS="umamisoftware/umami:$VERSION"
else else
# stable release: version + hierarchy + latest # stable release: version + hierarchy
TAGS="$VERSION,${MAJOR}.${MINOR},${MAJOR},postgresql-latest,latest" GHCR_TAGS="ghcr.io/${{ github.repository }}:$VERSION"
GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:${MAJOR}.${MINOR}"
GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:${MAJOR}"
GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:postgresql-latest"
DOCKER_TAGS="umamisoftware/umami:$VERSION"
DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:${MAJOR}.${MINOR}"
DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:${MAJOR}"
DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:postgresql-latest"
# Add latest tag based on trigger and input
if [[ "$REF_TYPE" == "tag" ]] || [[ "$INCLUDE_LATEST" == "true" ]]; then
GHCR_TAGS="$GHCR_TAGS,ghcr.io/${{ github.repository }}:latest"
DOCKER_TAGS="$DOCKER_TAGS,umamisoftware/umami:latest"
fi
fi fi
else else
# Non-tag build (e.g. from main branch) # Non-tag build (e.g. from main branch)
TAGS="${REF_NAME}" GHCR_TAGS="ghcr.io/${{ github.repository }}:${REF_NAME}"
DOCKER_TAGS="umamisoftware/umami:${REF_NAME}"
fi fi
echo "tags=$TAGS" >> $GITHUB_OUTPUT echo "ghcr_tags=$GHCR_TAGS" >> $GITHUB_OUTPUT
echo "Computed tags: $TAGS" echo "docker_tags=$DOCKER_TAGS" >> $GITHUB_OUTPUT
echo "Computed GHCR tags: $GHCR_TAGS"
echo "Computed Docker Hub tags: $DOCKER_TAGS"
- name: Build and push Docker image - name: Build and push to GHCR
run: | uses: docker/build-push-action@v5
TAGS="${{ steps.compute.outputs.tags }}" with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.compute.outputs.ghcr_tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
# Set image targets conditionally - name: Build and push to Docker Hub
if [[ "${{ github.repository }}" == "umami-software/umami" ]]; then if: github.repository == 'umami-software/umami'
IMAGES=("umamisoftware/umami" "ghcr.io/${{ github.repository }}") uses: docker/build-push-action@v5
else with:
IMAGES=("ghcr.io/${{ github.repository }}") context: .
fi platforms: linux/amd64,linux/arm64
push: true
for IMAGE in "${IMAGES[@]}"; do tags: ${{ steps.compute.outputs.docker_tags }}
echo "Building and pushing $IMAGE with tags: $TAGS" cache-from: type=gha
docker buildx build \ cache-to: type=gha,mode=max
--platform linux/amd64,linux/arm64 \
--push \
$(echo "$TAGS" | tr ',' '\n' | sed "s|^|--tag ${IMAGE}:|") \
--cache-from type=gha \
--cache-to type=gha,mode=max \
.
done

View file

@ -3,7 +3,7 @@ name: Node.js CI
on: [push] on: [push]
env: env:
DATABASE_TYPE: postgresql DATABASE_URL: "postgresql://user:pass@localhost:5432/dummy"
SKIP_DB_CHECK: 1 SKIP_DB_CHECK: 1
jobs: jobs:
@ -11,27 +11,18 @@ jobs:
if: github.repository == 'umami-software/umami' if: github.repository == 'umami-software/umami'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
include:
- node-version: 18.18
pnpm-version: 10
db-type: postgresql
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: pnpm/action-setup@v4 # required so that setup-node will work - uses: pnpm/action-setup@v4
with: with:
version: ${{ matrix.pnpm-version }} version: 10
run_install: false run_install: false
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js 18.18
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: 18.18
cache: 'pnpm' cache: "pnpm"
env: - run: npm install --global pnpm
DATABASE_TYPE: ${{ matrix.db-type }} - run: pnpm install
- run: npm install --global pnpm - run: pnpm test
- run: pnpm install - run: pnpm build
- run: pnpm test
- run: pnpm build

View file

@ -1,6 +1,6 @@
{ {
"name": "umami", "name": "umami",
"version": "3.0.2", "version": "3.0.3",
"description": "A modern, privacy-focused alternative to Google Analytics.", "description": "A modern, privacy-focused alternative to Google Analytics.",
"author": "Umami Software, Inc. <hello@umami.is>", "author": "Umami Software, Inc. <hello@umami.is>",
"license": "MIT", "license": "MIT",
@ -102,15 +102,15 @@
"kafkajs": "^2.1.0", "kafkajs": "^2.1.0",
"lucide-react": "^0.543.0", "lucide-react": "^0.543.0",
"maxmind": "^5.0.0", "maxmind": "^5.0.0",
"next": "^15.5.7", "next": "^15.5.9",
"node-fetch": "^3.2.8", "node-fetch": "^3.2.8",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"papaparse": "^5.5.3", "papaparse": "^5.5.3",
"pg": "^8.16.3", "pg": "^8.16.3",
"prisma": "^6.18.0", "prisma": "^6.18.0",
"pure-rand": "^7.0.1", "pure-rand": "^7.0.1",
"react": "^19.2.1", "react": "^19.2.3",
"react-dom": "^19.2.1", "react-dom": "^19.2.3",
"react-error-boundary": "^4.0.4", "react-error-boundary": "^4.0.4",
"react-intl": "^7.1.14", "react-intl": "^7.1.14",
"react-simple-maps": "^2.3.0", "react-simple-maps": "^2.3.0",

1946
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@
"label.behavior": "行動", "label.behavior": "行動",
"label.boards": "ボード", "label.boards": "ボード",
"label.bounce-rate": "直帰率", "label.bounce-rate": "直帰率",
"label.breakdown": "故障", "label.breakdown": "内訳",
"label.browser": "ブラウザ", "label.browser": "ブラウザ",
"label.browsers": "ブラウザ", "label.browsers": "ブラウザ",
"label.campaigns": "キャンペーン", "label.campaigns": "キャンペーン",