mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-28 16:19:48 +03:00
Feat/translate all content (#121)
* feat: add script to extract strings * feat: extract many strings (html, attr, label) * feat(extract string): extract html only for .vue and single file mode * fix: __i18n_ally_root__ * feat: nestify en.yml + extract tab attributes * feat: add script to extract strings * feat: extract many strings (html, attr, label) * feat(extract string): extract html only for .vue and single file mode * fix: __i18n_ally_root__ * feat: nestify en.yml + extract tab attributes * fix: lint * feat: add vue-i18n-extract to check missing keys * fix: unit tests * fix: update vue i18n plugin
This commit is contained in:
1 parent
0d4267e356
commit
a8c6ebc81b
347 files changed
+10245
-4533
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export function decodeSharePointsURL(sharePointsUrl: string) {
|
||||
if (!sharePointsUrl.match(/\.sharepoint\.com/)) {
|
||||
throw new Error('Invalid SharePoint URL provided');
|
||||
throw new Error(t('tools.sharepoint-decoder.text.invalid-sharepoint-url-provided'));
|
||||
}
|
||||
|
||||
const url = new URL(sharePointsUrl);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { decodeSharePointsURL } from './sharepoint-decoder.service';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const inputSharePointUrl = ref('');
|
||||
const outputDecodedUrl = computed(() => {
|
||||
try {
|
||||
@@ -18,14 +21,14 @@ const outputDecodedUrl = computed(() => {
|
||||
<c-input-text
|
||||
v-model:value="inputSharePointUrl"
|
||||
raw-text
|
||||
placeholder="Your input SharePoint Url..."
|
||||
:placeholder="t('tools.sharepoint-decoder.texts.placeholder-your-input-sharepoint-url')"
|
||||
autofocus
|
||||
label="Your input SharePoint Url:"
|
||||
:label="t('tools.sharepoint-decoder.texts.label-your-input-sharepoint-url')"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-form-item label="Output decoded URL:">
|
||||
<n-form-item :label="t('tools.sharepoint-decoder.texts.label-output-decoded-url')">
|
||||
<TextareaCopyable :value="outputDecodedUrl" :word-wrap="true" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user