Skip to content

Commit 22584d8

Browse files
committed
fix: remove unused setup file and clean up test configuration
1 parent 58f5a79 commit 22584d8

File tree

6 files changed

+21
-4
lines changed

6 files changed

+21
-4
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Add any other context or screenshots about the feature request here.
2222
Please describe a specific use case where this feature would be beneficial.
2323

2424
**Checklist**
25+
2526
- [ ] I have searched existing issues to avoid duplicates
2627
- [ ] This feature would be useful for the community
2728
- [ ] I'm willing to help implement this feature if needed

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,25 @@ Thank you for your interest in contributing to hua-i18n-sdk! This document provi
66

77
### Prerequisites
88

9-
- Node.js 18+
9+
- Node.js 18+
1010
- npm or yarn
1111
- Git
1212

1313
### Setup
1414

1515
1. Fork the repository
16+
1617
2. Clone your fork:
1718
```bash
1819
git clone https://github.com/YOUR_USERNAME/i18n-sdk.git
1920
cd i18n-sdk
2021
```
22+
2123
3. Install dependencies:
2224
```bash
2325
npm install
2426
```
27+
2528
4. Create a feature branch:
2629
```bash
2730
git checkout -b feature/your-feature-name

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ return <h1>{title}</h1>;
9696

9797
## 기여하기
9898

99-
버그 리포트, 기능 제안, PR 모두 환영합니다!
99+
버그 리포트, 기능 제안, PR 모두 환영합니다!
100100

101101
- **[Issues](https://github.com/HUA-Labs/i18n-sdk/issues)**
102102
- **[Discussions](https://github.com/HUA-Labs/i18n-sdk/discussions)**

examples/nextjs-basic/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ npm run dev
1616

1717
## 📁 프로젝트 구조
1818

19-
```
19+
```text
2020
├── app/
2121
│ ├── layout.tsx # I18nProvider 설정
2222
│ ├── page.tsx # 메인 페이지 (SSR 예제)
@@ -39,19 +39,23 @@ npm run dev
3939
## 🎯 주요 기능
4040

4141
### 1. SSR/CSR 지원
42+
4243
- **서버 컴포넌트**: `ssrTranslate()` 사용
4344
- **클라이언트 컴포넌트**: `useTranslation()` 훅 사용
4445

4546
### 2. 언어 전환
47+
4648
- 실시간 언어 변경
4749
- URL 파라미터 기반 언어 감지
4850
- 브라우저 언어 자동 감지
4951

5052
### 3. Fallback 지원
53+
5154
- 번역 키가 없을 때 fallback 언어 사용
5255
- 네임스페이스별 fallback
5356

5457
### 4. 타입 안전성
58+
5559
- TypeScript로 번역 키 자동완성
5660
- 타입 체크 지원
5761

@@ -102,6 +106,7 @@ export default function RootLayout({
102106
### 3. 사용 예제
103107

104108
#### 서버 컴포넌트 (SSR)
109+
105110
```tsx
106111
import { ssrTranslate } from 'hua-i18n-sdk';
107112
import translations from '@/translations';
@@ -118,6 +123,7 @@ export default function ServerPage() {
118123
```
119124

120125
#### 클라이언트 컴포넌트 (CSR)
126+
121127
```tsx
122128
'use client';
123129
import { useTranslation } from 'hua-i18n-sdk';

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
'!src/**/*.d.ts',
1515
'!src/**/index.ts',
1616
],
17-
setupFilesAfterEnv: ['<rootDir>/src/__tests__/setup.ts'],
17+
setupFilesAfterEnv: ['<rootDir>/src/__tests__/jest.setup.ts'],
1818
moduleNameMapper: {
1919
'^@/(.*)$': '<rootDir>/src/$1',
2020
},

src/__tests__/setup.ts renamed to src/__tests__/jest.setup.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ beforeAll(() => {
2929
afterAll(() => {
3030
console.error = originalError;
3131
console.warn = originalWarn;
32+
});
33+
34+
// Add a dummy test to satisfy Jest requirements
35+
describe('Jest Setup', () => {
36+
it('should be properly configured', () => {
37+
expect(true).toBe(true);
38+
});
3239
});

0 commit comments

Comments
 (0)