Skip to content

Commit

Permalink
feat(Endpoints): add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
huynvn97 committed Sep 30, 2024
1 parent 33fd5f5 commit 63cf39b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/app/components/endpoints/endpoints.component.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<div class="page-content-detail">
<h2 class="page-title mb-3">Version: 1</h2>
<h2 class="page-title mb-3" translate>{{ 'WebEndpoints.Version' | translate: { value: 1 } }}</h2>
<br/>
<table class="table table-striped" style="overflow: hidden;">
<tbody>
<tr>
<th>OpenID Issuer</th>
<th translate>WebEndpoints.OpenIDIssuer</th>
<td>{{settings.get().oidcIssuer}}</td>
</tr>
<tr>
<th>Client</th>
<th translate>WebEndpoints.Client</th>
<td>{{settings.get().apiUrl}}/config/clients</td>
</tr>
<tr>
<th>Client certificate</th>
<th translate>WebEndpoints.ClientCertificate</th>
<td>{{settings.get().apiUrl}}/config/clients/keys/:client_id</td>
</tr>
<tr>
<th>User</th>
<td>{{settings.get().apiUrl}}/config/users</td>
<th translate>WebEndpoints.User</th>
<td translate>{{settings.get().apiUrl}}/config/users</td>
</tr>
<tr>
<th>Config</th>
<th translate>WebEndpoints.Config</th>
<td>{{settings.get().apiUrl}}/config/omejdn</td>
</tr>
<tr>
<th>Authorization</th>
<th translate>WebEndpoints.Authorization</th>
<td>{{app.oauthService.loginUrl}}</td>
</tr>
<tr>
<th>Token</th>
<th translate>WebEndpoints.Token</th>
<td>{{app.oauthService.tokenEndpoint}}</td>
</tr>
<tr>
<th>Userinfo</th>
<th translate>WebEndpoints.Userinfo</th>
<td>{{app.oauthService.userinfoEndpoint}}</td>
</tr>
</tbody>
Expand Down
12 changes: 12 additions & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@
"FailedSavingChanges": "Failed saving changes."
},
"Webfinger": {
"Webfinger": "Webfinger Config",
"NewEntry": "New Entry"
},
"WebEndpoints": {
"Version": "Version: {{value}}",
"OpenIDIssuer": "OpenID Issuer",
"Client": "Client",
"ClientCertificate": "Client certificate",
"User": "User",
"Config": "Config",
"Authorization": "Authorization",
"Token": "Token",
"Userinfo": "Userinfo"
}
}

0 comments on commit 63cf39b

Please sign in to comment.