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

Internationalisation / Translation #98

Open
l4b4r4b4b4 opened this issue May 14, 2022 · 7 comments
Open

Internationalisation / Translation #98

l4b4r4b4b4 opened this issue May 14, 2022 · 7 comments
Labels
v2 Will be implemented in version 2

Comments

@l4b4r4b4b4
Copy link

Hey,
first, cudos for this awesome project. Setup wireguard VPN with LDAP integration and works like a charm.

Are there any intentions of including internationalization in the project? UNfortunately I do not have any prior experience in Go, but I would offer my help with German and Spanish, both of which I am a native speaker of.

Cheers
Luke

@h44z
Copy link
Owner

h44z commented May 14, 2022

Hi, I am currently rewriting the frontend using Vue.js, maybe we can use something like https://vue-i18n.intlify.dev/ to handle different languages. Once the frontend is ready, I appreciate your help =)

@l4b4r4b4b4
Copy link
Author

Well that's good news. I do have experience in using i18n. Not in Vue but I guess the concepts should be quite similar to using the library in next or react apps, taking a brief look into the docs.

I assume the source code under this branch, right?

@h44z
Copy link
Owner

h44z commented May 14, 2022

nice =)

yeah the code is in the v2-spa branch. It is still far from finished though...
If you want to view the new UI (without backend interaction at the moment) you have to:

  • cd [path to wg-portal]/cmd/wg-portal-spa/frontend
  • npm install
  • npm run dev
  • visit localhost:3000

@l4b4r4b4b4
Copy link
Author

will start trying to include i18n then :)

@l4b4r4b4b4
Copy link
Author

l4b4r4b4b4 commented May 15, 2022

so I added i18n (de/en) for menu and home page. Pull request coming 😄

@l4b4r4b4b4
Copy link
Author

l4b4r4b4b4 commented May 15, 2022

How can I assign an object to a html property in VueJS?

The following code does not work...

<input type="text" name="username" class="form-control" id="inputUsername"
  aria-describedby="usernameHelp" placeholder={{$t('login.usernameMsg')}}>

@h44z
Copy link
Owner

h44z commented May 16, 2022

How can I assign an object to a html property in VueJS?

The following code does not work...

<input type="text" name="username" class="form-control" id="inputUsername"
  aria-describedby="usernameHelp" placeholder={{$t('login.usernameMsg')}}>

You have to bind attributes like so: :placeholder="$t('login.userMessage')"

<input type="text" name="username" class="form-control" id="inputUsername" aria-describedby="usernameHelp" :placeholder="$t('login.userMessage')">

@h44z h44z added the v2 Will be implemented in version 2 label Oct 29, 2022
@h44z h44z mentioned this issue Aug 3, 2023
h44z added a commit that referenced this issue Aug 4, 2023
Initial alpha codebase for version 2 of WireGuard Portal.
This version is considered unstable and incomplete (for example, no public REST API)! 
Use with care!


Fixes/Implements the following issues:
 - OAuth support #154, #1 
 - New Web UI with internationalisation support #98, #107, #89, #62
 - Postgres Support #49 
 - Improved Email handling #47, #119 
 - DNS Search Domain support #46 
 - Bugfixes #94, #48 

---------

Co-authored-by: Fabian Wechselberger <wechselbergerf@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Will be implemented in version 2
Projects
None yet
Development

No branches or pull requests

2 participants