summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/share/content-bash.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-09 11:34:35 -0600
committerGitHub <[email protected]>2026-02-09 11:34:35 -0600
commitdc53086c1e73d43d3a28fc4cdf161e83d09b1877 (patch)
tree45a1d0e38de958d0886a5120b2806b21db74145b /packages/web/src/components/share/content-bash.tsx
parentf74c0339cc6315f7e7743e26b7eab47ce026c239 (diff)
downloadopencode-dc53086c1e73d43d3a28fc4cdf161e83d09b1877.tar.gz
opencode-dc53086c1e73d43d3a28fc4cdf161e83d09b1877.zip
wip(docs): i18n (#12681)
Diffstat (limited to 'packages/web/src/components/share/content-bash.tsx')
-rw-r--r--packages/web/src/components/share/content-bash.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/web/src/components/share/content-bash.tsx b/packages/web/src/components/share/content-bash.tsx
index 5ccd95c0b..f8130ecc6 100644
--- a/packages/web/src/components/share/content-bash.tsx
+++ b/packages/web/src/components/share/content-bash.tsx
@@ -1,6 +1,6 @@
import style from "./content-bash.module.css"
import { createResource, createSignal } from "solid-js"
-import { createOverflow } from "./common"
+import { createOverflow, useShareMessages } from "./common"
import { codeToHtml } from "shiki"
interface Props {
@@ -11,6 +11,7 @@ interface Props {
}
export function ContentBash(props: Props) {
+ const messages = useShareMessages()
const [commandHtml] = createResource(
() => props.command,
async (command) => {
@@ -59,7 +60,7 @@ export function ContentBash(props: Props) {
data-slot="expand-button"
onClick={() => setExpanded((e) => !e)}
>
- {expanded() ? "Show less" : "Show more"}
+ {expanded() ? messages.show_less : messages.show_more}
</button>
)}
</div>