Compare commits

...
5 Commits
11 changed files with 31 additions and 20 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]
jobs:
build:
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]
jobs:
lint:
+1 -1
View File
@@ -2,7 +2,7 @@ name: "Release"
on:
push:
branches: [master]
branches: [main]
jobs:
release:
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]
jobs:
test-unit:
+2 -2
View File
@@ -1,5 +1,5 @@
{
"branches": ["master"],
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
@@ -30,7 +30,7 @@
[
"@saithodev/semantic-release-backmerge",
{
"branches": [{ "from": "master", "to": "develop" }],
"branches": [{ "from": "main", "to": "develop" }],
"backmergeStrategy": "merge"
}
]
+3 -3
View File
@@ -1,9 +1,9 @@
FROM node:20.12.2 AS builder-dependencies
FROM node:20.15.1 AS builder-dependencies
WORKDIR /usr/src/application
COPY ./package*.json ./
RUN npm clean-install
FROM node:20.12.2 AS builder
FROM node:20.15.1 AS builder
ENV NEXT_TELEMETRY_DISABLED=1
ENV IS_STANDALONE=true
WORKDIR /usr/src/application
@@ -11,7 +11,7 @@ COPY --from=builder-dependencies /usr/src/application/node_modules ./node_module
COPY ./ ./
RUN npm run build
FROM node:20.12.2-slim AS runner
FROM node:20.15.1-slim AS runner
ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0
ENV NEXT_TELEMETRY_DISABLED=1
+15 -4
View File
@@ -1,5 +1,7 @@
import { useI18n } from "@/i18n/i18n.client"
import Image from "next/image"
import type { CookiesStore } from "@/utils/constants"
import { useI18n } from "@/i18n/i18n.client"
export interface LocaleFlagProps {
locale: string
@@ -12,8 +14,17 @@ export const LocaleFlag = (props: LocaleFlagProps): JSX.Element => {
const i18n = useI18n(cookiesStore)
return (
<p data-cy="locale-flag-text" className="mx-2 text-lg font-semibold">
{i18n.translate(`common.${locale}`)}
</p>
<>
<Image
quality={100}
width={35}
height={35}
src={`/images/locales/${locale}.svg`}
alt={locale}
/>
<p data-cy="locale-flag-text" className="mx-2 text-base font-semibold">
{i18n.translate(`common.${locale}`)}
</p>
</>
)
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"en-US": "🇺🇸 English",
"fr-FR": "🇫🇷 French",
"en-US": "English",
"fr-FR": "French",
"all-rights-reserved": "All rights reserved",
"home": "Home"
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"en-US": "🇺🇸 Anglais",
"fr-FR": "🇫🇷 Français",
"en-US": "Anglais",
"fr-FR": "Français",
"all-rights-reserved": "Tous droits réservés",
"home": "Accueil"
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "theoludwig",
"version": "3.3.1",
"version": "3.3.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "theoludwig",
"version": "3.3.1",
"version": "3.3.2",
"hasInstallScript": true,
"dependencies": {
"@fontsource/montserrat": "5.0.18",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "theoludwig",
"version": "3.3.1",
"version": "3.3.2",
"private": true,
"repository": {
"type": "git",