Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation Support? #25

Open
1 task done
Gulluth opened this issue Apr 27, 2024 · 1 comment
Open
1 task done

Translation Support? #25

Gulluth opened this issue Apr 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Gulluth
Copy link

Gulluth commented Apr 27, 2024

What?

I am adding additional language support to a docsify installation, and I have noticed that the _footer.md file is loading from the repo root instead of honoring the lang stub of the URL.

Behavior?

I am hoping to have _footer.md dynamically loaded based on the alias defined in docsify.

Alternatives?

No response

Additional context

If I am an idiot, can you please let me know what I am missing?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Gulluth Gulluth added the bug Something isn't working label Apr 27, 2024
@Gulluth
Copy link
Author

Gulluth commented Apr 27, 2024

Here is my configuration.

23 // Docsify configuration
24 window.$docsify = {
25 // Translation aliases are defined using the short i18n codes found at https://i18ns.com/languagecode.html
26 alias: {
27 '/./_navbar.md': '/_navbar.md',
28 '/ko/(.
)': 'https://raw.githubusercontent.com/VedminStuden/vaarn-ko/master/$1',
29 },
30 auto2top: true,
31 executeScript: true,
32 loadFooter: true,
33 loadSidebar: true,
34 loadNavbar: true,
35 name: 'VAULTS OF VAARN',
36 nameLink: {
37 '/ko/': '#/ko/',
38 '/': '#/',
39 },
40 pagination: {
41 crossChapter: true,
42 crossChapterText: true,
43 nextText: {
44 '/ko/': '다음',
45 '/': 'NEXT',
46 },
47 previousText: {
48 '/ko/': '이전의',
49 '/': 'PREVIOUS',
50 },
51 },
52 paths: 'auto',
53 placeholder: {
54 '/ko/': '검색',
55 '/': 'Search',
56 },
57 pathNamespaces: ['/ko'],
58 search: 'auto',
59 sidebarDisplayLevel: 1,
60 subMaxLevel: 2,
61 }
62 </script>
63
64
65 <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
66
67 <script src="//cdn.jsdelivr.net/npm/@alertbox/[email protected]/dist/docsify-footer.min.js"></script>
68 <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
69 <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants