Skip to content

Commit b5ffbcd

Browse files
builder
1 parent 9b5bec7 commit b5ffbcd

File tree

4 files changed

+51
-5
lines changed

4 files changed

+51
-5
lines changed

lib/builder.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
3+
MIT License
4+
5+
Copyright (c) 2025 JustStudio <https://juststudio.is-a.dev/>
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
*/
26+
27+
import { useEffect, useState } from 'react';
28+
import { useTranslations } from 'next-intl';
29+
import { useRouter } from 'next/router';
30+
31+
const builder = () => {
32+
const translate = useTranslations();
33+
34+
return (
35+
<>
36+
<span>{translate.raw('builder.file')}</span>
37+
</>
38+
)
39+
}
40+
41+
export default builder;

locales/en.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
3-
}
2+
"builder.file": "File",
3+
"builder.filecontent": "Content",
4+
"builder.filetype": "Type"
5+
}

locales/ru.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
3-
}
2+
"builder.file": "Файл",
3+
"builder.filecontent": "Содержание",
4+
"builder.filetype": "Тип"
5+
}

pages/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ SOFTWARE.
2727
import { useEffect, useState } from 'react';
2828
import { useTranslations } from 'next-intl';
2929
import { useRouter } from 'next/router';
30+
import { builder as Builder } from '../lib/builder';
3031

3132
const Home = () => {
3233
const [loading, setLoading] = useState(true);
@@ -36,7 +37,7 @@ const Home = () => {
3637
return (
3738
<>
3839
<h1>Just an Ultimate Site Tool Demo</h1>
39-
<div></div>
40+
<Builder />
4041
</>
4142
);
4243
};

0 commit comments

Comments
 (0)