Skip to content

Commit

Permalink
Feature: Release Jan. 29, 2025: automated tools, add french to common…
Browse files Browse the repository at this point in the history
… language files, add Spanish translations for the latest story submissions (#482)

<!--- Please provide a general summary of your changes in the title
above -->

# Pull Request type

<!-- Please try to limit your pull request to one type; submit multiple
pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no API changes)
- [ ] Build-related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or
link to a relevant issue. -->

Issue Number: N/A

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by
this PR. -->

-
-
-

## Does this introduce a breaking change?

- [ ] Yes
- [ ] No

<!-- If this does introduce a breaking change, please describe the
impact and migration path for existing applications below. -->

## Other information

<!-- Any other information that is important to this PR, such as
screenshots of how the component looks before and after the change. -->
  • Loading branch information
trigal2012 authored Jan 29, 2025
2 parents cf1d0fe + ab0f3e7 commit eb9fd37
Show file tree
Hide file tree
Showing 29 changed files with 4,045 additions and 4,922 deletions.
13 changes: 11 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.

# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly

# Environment
NODE_ENV=development

# Prisma
DATABASE_URL=postgres://localhost/glaad
# Database connection URL for Prisma
POSTGRES_PRISMA_URL=postgres://user:password@localhost:5432/postgres

# Database connection URL without connection pooling
POSTGRES_URL_NON_POOLING=postgres://user:password@localhost:5432/postgres

# Next Auth
# You can generate the secret via 'openssl rand -base64 32' on the command line
# More info: https://next-auth.js.org/configuration/options#secret

NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET= # generate with `openssl rand -base64 32`



2 changes: 1 addition & 1 deletion .github/workflows/approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: github/privileged-requester@f8d60d9344e1c10976aad5c1af0c7c977badd677 # v2.1.0
- uses: github/privileged-requester@ebdc640ba40d7488197e7d4dae814fbfae092e65 # v2.3.2
if: ${{ github.event.requested_reviewer.login == 'InReach-svc'}}
with:
github_token: ${{ secrets.GH_ACT_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
CI: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
Expand All @@ -24,15 +24,15 @@ jobs:
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Publish to Chromatic
uses: chromaui/action@57a72947e9d7a6d213906cd506276c707e0c580f # v11
uses: chromaui/action@f4e60a7072abcac4203f4ca50613f28e199a52ba # v11
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🏗 Initialize CodeQL
uses: github/codeql-action/init@9fdb3e49720b44c48891d036bb502feb25684276 # v3
uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3
- name: 🚀 Perform CodeQL Analysis
uses: github/codeql-action/analyze@9fdb3e49720b44c48891d036bb502feb25684276 # v3
uses: github/codeql-action/analyze@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3
2 changes: 1 addition & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🚀 Run Label Syncer
uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
# Setup steps
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Expand All @@ -35,7 +35,7 @@ jobs:
# standalone: true

- name: Install Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version-file: .nvmrc
cache: pnpm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
name: Install pnpm
Expand All @@ -34,7 +34,7 @@ jobs:
run_install: false

- name: Install Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version-file: .nvmrc
cache: pnpm
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
run: npx -p nextjs-bundle-analysis report

- name: Upload bundle
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: bundle
path: .next/analyze/__bundle_analysis.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏷 Verify PR has a valid label
uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5
uses: mheap/github-action-required-labels@d25134c992b943fb6ad00c25ea00eb5988c0a9dd # v5
with:
labels: 'breaking-change, bugfix, documentation, enhancement, refactor, performance, new-feature, maintenance, ci, dependencies, translations, changelog-ignore'
mode: minimum
Expand Down
2 changes: 0 additions & 2 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

check_changed() {
if git diff HEAD^ HEAD --exit-code --quiet -- $1; then
Expand Down
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"


pnpm lint:staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.13.1
20.17.0
7 changes: 7 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
project_id: '14'
api_token_env: 'CROWDIN_PERSONAL_TOKEN'
base_url: https://inreach.crowdin.com
base_path: '.'
preserve_hierarchy: true
files:
- source: /public/locales/en/*.json
translation: /public/locales/%two_letters_code%/%original_file_name%
type: i18next_json
update_option: 'update_as_unapproved'
118 changes: 59 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,103 +31,103 @@
"with-env": "dotenv -e ./.env --"
},
"dependencies": {
"@crowdin/crowdin-api-client": "1.33.1",
"@emotion/react": "11.11.4",
"@crowdin/crowdin-api-client": "1.36.0",
"@emotion/react": "11.13.3",
"@emotion/server": "11.11.0",
"@mantine/carousel": "6.0.21",
"@mantine/core": "6.0.21",
"@mantine/form": "6.0.21",
"@mantine/hooks": "6.0.21",
"@mantine/next": "6.0.21",
"@neondatabase/serverless": "0.9.3",
"@next/bundle-analyzer": "14.2.3",
"@prisma/adapter-neon": "5.14.0",
"@prisma/client": "5.14.0",
"@storybook/test": "8.1.3",
"@mantine/carousel": "6.0.22",
"@mantine/core": "6.0.22",
"@mantine/form": "6.0.22",
"@mantine/hooks": "6.0.22",
"@mantine/next": "6.0.22",
"@neondatabase/serverless": "0.9.5",
"@next/bundle-analyzer": "14.2.13",
"@prisma/adapter-neon": "5.20.0",
"@prisma/client": "5.20.0",
"@storybook/test": "8.3.3",
"@tabler/icons-react": "2.47.0",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-query-devtools": "4.36.1",
"@trpc/client": "10.45.2",
"@trpc/next": "10.45.2",
"@trpc/react-query": "10.45.2",
"@trpc/server": "10.45.2",
"@vercel/analytics": "1.3.0",
"@vercel/speed-insights": "1.0.10",
"@vercel/analytics": "1.3.1",
"@vercel/speed-insights": "1.0.12",
"embla-carousel-auto-height": "7.1.0",
"embla-carousel-react": "7.1.0",
"i18next": "23.11.5",
"i18next": "23.15.1",
"i18next-browser-languagedetector": "8.0.0",
"i18next-http-backend": "2.5.2",
"i18next-http-backend": "2.6.1",
"nanoid": "5.0.7",
"next": "14.2.3",
"next-i18next": "15.3.0",
"next": "14.2.13",
"next-i18next": "15.3.1",
"next-sitemap": "4.2.3",
"nextjs-routes": "2.1.0",
"nextjs-routes": "2.2.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-i18next": "14.1.2",
"react-i18next": "15.0.2",
"slugify": "1.6.6",
"superjson": "2.2.1",
"ws": "8.17.0",
"ws": "8.18.0",
"zod": "3.23.8"
},
"devDependencies": {
"@faker-js/faker": "7.6.0",
"@paralleldrive/cuid2": "2.2.2",
"@relative-ci/agent": "4.2.7",
"@storybook/addon-a11y": "8.1.3",
"@storybook/addon-essentials": "8.1.3",
"@storybook/addon-interactions": "8.1.3",
"@storybook/addon-links": "8.1.3",
"@storybook/addon-viewport": "8.1.3",
"@storybook/blocks": "8.1.3",
"@storybook/nextjs": "8.1.3",
"@storybook/react": "8.1.3",
"@relative-ci/agent": "4.2.11",
"@storybook/addon-a11y": "8.3.3",
"@storybook/addon-essentials": "8.3.3",
"@storybook/addon-interactions": "8.3.3",
"@storybook/addon-links": "8.3.3",
"@storybook/addon-viewport": "8.3.3",
"@storybook/blocks": "8.3.3",
"@storybook/nextjs": "8.3.3",
"@storybook/react": "8.3.3",
"@tomfreudenberg/next-auth-mock": "0.5.6",
"@types/luxon": "3.4.2",
"@types/node": "20.12.12",
"@types/react": "18.3.2",
"@types/node": "20.16.7",
"@types/react": "18.3.9",
"@types/react-dom": "18.3.0",
"@types/umami": "0.1.5",
"@types/ws": "8.5.10",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"boxen": "7.1.1",
"chromatic": "11.4.0",
"chromatic": "11.10.4",
"dotenv": "16.4.5",
"dotenv-cli": "7.4.2",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"eslint": "8.57.1",
"eslint-config-next": "14.2.13",
"eslint-config-prettier": "9.1.0",
"eslint-formatter-github": "1.1.4",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-codegen": "0.28.0",
"eslint-plugin-i18next": "6.0.3",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-codegen": "0.29.0",
"eslint-plugin-i18next": "6.1.0",
"eslint-plugin-import": "npm:[email protected]",
"eslint-plugin-node": "npm:[email protected]",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-storybook": "0.8.0",
"eslint-plugin-turbo": "1.13.3",
"husky": "9.0.11",
"i18next-hmr": "3.1.2",
"knip": "5.16.0",
"lint-staged": "15.2.4",
"listr2": "8.2.1",
"luxon": "3.4.4",
"merge-anything": "5.1.7",
"prettier": "3.2.5",
"eslint-plugin-turbo": "1.13.4",
"husky": "9.1.6",
"i18next-hmr": "3.1.3",
"knip": "5.30.5",
"lint-staged": "15.2.10",
"listr2": "8.2.4",
"luxon": "3.5.0",
"merge-anything": "6.0.2",
"prettier": "3.3.3",
"prettier-plugin-jsdoc": "1.3.0",
"prettier-plugin-packagejson": "2.5.0",
"prettier-plugin-packagejson": "2.5.2",
"prettier-plugin-prisma": "5.0.0",
"prisma": "5.14.0",
"prisma": "5.20.0",
"react-docgen-typescript": "2.2.2",
"storybook": "8.1.3",
"tsx": "4.11.0",
"turbo": "1.13.3",
"type-fest": "4.18.2",
"typescript": "5.4.5"
"storybook": "8.3.3",
"tsx": "4.19.1",
"turbo": "1.13.4",
"type-fest": "4.26.1",
"typescript": "5.6.2"
},
"packageManager": "pnpm@9.1.2",
"packageManager": "pnpm@9.11.0",
"engines": {
"node": "^20.12.2",
"pnpm": "^9.0.0"
Expand Down
Loading

0 comments on commit eb9fd37

Please sign in to comment.