i18n: better name

This commit is contained in:
Julien Calixte
2026-03-15 00:57:38 +01:00
parent 9c49abfff2
commit da0231b427

View File

@@ -5,7 +5,7 @@ import { useTimeUntil } from "../hooks/useTimeUntil.hooks"
const props = defineProps<{ project?: string; target?: string }>() const props = defineProps<{ project?: string; target?: string }>()
const searchParams = useUrlSearchParams<{ project?: string; target?: string }>( const searchParams = useUrlSearchParams<{ project?: string; target?: string }>(
"history" "history",
) )
const projectTitle = ref(props.project) const projectTitle = ref(props.project)
@@ -18,7 +18,7 @@ watch(
}, },
{ {
immediate: true, immediate: true,
} },
) )
watch( watch(
@@ -28,7 +28,7 @@ watch(
}, },
{ {
immediate: true, immediate: true,
} },
) )
const target = computed(() => targetInput.value) const target = computed(() => targetInput.value)
@@ -42,7 +42,7 @@ const targetDate = computed(() =>
? new Date(targetInput.value).toLocaleDateString(undefined, { ? new Date(targetInput.value).toLocaleDateString(undefined, {
dateStyle: "long", dateStyle: "long",
}) })
: null : null,
) )
const { const {
@@ -129,7 +129,7 @@ const copyUrl = () => {
/> />
</div> </div>
<div> <div>
<label for="target">Target date:</label> <label for="target">Milestone:</label>
<input <input
type="date" type="date"
id="target" id="target"
@@ -138,7 +138,9 @@ const copyUrl = () => {
/> />
</div> </div>
<div> <div>
<a :href="url" target="_blank" rel="noopener noreferrer"><button type="button">open url</button></a> <a :href="url" target="_blank" rel="noopener noreferrer"
><button type="button">open url</button></a
>
<button @click="copyUrl">copy url</button> <button @click="copyUrl">copy url</button>
</div> </div>
<p class="hint">Shrink the window to hide this config.</p> <p class="hint">Shrink the window to hide this config.</p>