Skip to content

Commit 919d54d

Browse files
committed
feat: localizer
1 parent 946c541 commit 919d54d

File tree

4 files changed

+102
-10
lines changed

4 files changed

+102
-10
lines changed

cmp/localizer/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Hono } from 'hono';
2+
import { serve } from '@hono/node-server';
3+
4+
const app = new Hono();
5+
6+
app.get('/i18n', (c) => {
7+
return c.json({});
8+
});
9+
10+
const port = 3001;
11+
console.log(`Localizer service running on http://localhost:${port}`);
12+
13+
serve({
14+
fetch: app.fetch,
15+
port,
16+
});

cmp/localizer/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@compiler/localizer",
3+
"version": "0.0.1",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "tsx watch index.ts"
8+
},
9+
"dependencies": {
10+
"@hono/node-server": "^1.13.7",
11+
"hono": "^4.6.14"
12+
},
13+
"devDependencies": {
14+
"tsx": "^4.19.2",
15+
"typescript": "^5.7.2"
16+
}
17+
}

cmp/pnpm-lock.yaml

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

cmp/pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
packages:
22
- 'demo'
33
- 'compiler'
4+
- 'localizer'

0 commit comments

Comments
 (0)