Skip to content

Commit 92182d2

Browse files
committed
Merge branch 'main' of https://github.com/O2sa/DevImpact into feat/scoring-alog-enhancements
2 parents f3901e9 + 1f98481 commit 92182d2

5 files changed

Lines changed: 85 additions & 80 deletions

File tree

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
> [!WARNING]
2+
> **Important Note on AI-Generated Contributions**
3+
>
4+
> While we appreciate the use of AI as a productivity tool, pull requests consisting of code or documentation generated entirely by AI **without significant human review and testing** are not welcome.
5+
>
6+
> Every contributor is responsible for the code they submit. If we suspect a contribution is a "blind" AI generation that has not been verified for logic, security, or style, it will be closed without review.
7+
8+
9+
10+
---
11+
112
# Contributing to DevImpact
213

314
Thank you for your interest in contributing to DevImpact! This guide will help you get started.

components/language-provider.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33
import { createContext, useContext } from "react";
44
import { useI18nProvider, type Locale } from "../lib/i18n";
5+
import { I18nContextValue } from "../types/i18n";
6+
57

6-
type I18nContextValue = {
7-
locale: Locale;
8-
setLocale: (l: Locale) => void;
9-
t: (key: string, params?: Record<string, string | number>) => string;
10-
dir: "ltr" | "rtl";
11-
locales: { value: Locale; label: string }[];
12-
ready: boolean;
13-
};
148

159
const I18nContext = createContext<I18nContextValue | null>(null);
1610

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"class-variance-authority": "^0.7.0",
1818
"clsx": "^2.1.1",
1919
"lucide-react": "^1.7.0",
20-
"next": "^16.2.2",
20+
"next": "^16.2.6",
2121
"next-themes": "^0.3.0",
2222
"radix-ui": "^1.4.3",
2323
"react": "^19.2.4",
@@ -34,7 +34,7 @@
3434
"autoprefixer": "^10.4.20",
3535
"eslint": "^9.17.0",
3636
"eslint-config-next": "^16.2.2",
37-
"postcss": "^8.5.10",
37+
"postcss": "^8.5.11",
3838
"tailwindcss": "^3.4.14",
3939
"typescript": "^6.0.2",
4040
"vitest": "^4.1.5"

pnpm-lock.yaml

Lines changed: 60 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/i18n.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Locale } from "../lib/i18n";
2+
3+
export type I18nContextValue = {
4+
locale: Locale;
5+
setLocale: (l: Locale) => void;
6+
t: (key: string, params?: Record<string, string | number>) => string;
7+
dir: "ltr" | "rtl";
8+
locales: { value: Locale; label: string }[];
9+
ready: boolean;
10+
};

0 commit comments

Comments
 (0)