mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-10-15 19:19:21 +08:00
Allow language selection (#191)
* Add dropdown for language * Use vue-i18n to translate strings * Tweak header styling * Add Chinese languages in * Typo * Get language from browser (#193) * adaptive system language * Modify the adaptive system language * Remove dead code * Delete lang default values * Move browser language detection to util * Remove todos * Fix global PHP dropdown Co-authored-by: 墨娘 <61287199+moniang@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7d3290d850
commit
ff88e2f322
@@ -28,27 +28,27 @@ THE SOFTWARE.
|
||||
<div class="footer">
|
||||
<div class="container">
|
||||
<p>
|
||||
<a href="#top" class="button is-primary is-small">{{ i18n.templates.footer.backToTop }}</a>
|
||||
<a href="#top" class="button is-primary is-small">{{ $t('templates.footer.backToTop') }}</a>
|
||||
</p>
|
||||
<p>
|
||||
{{ i18n.templates.footer.thisToolIs }}
|
||||
<ExternalLink :text="i18n.templates.footer.openSourceOnGitHub"
|
||||
{{ $t('templates.footer.thisToolIs') }}
|
||||
<ExternalLink :text="$t('templates.footer.openSourceOnGitHub')"
|
||||
link="https://github.com/digitalocean/nginxconfig.io"
|
||||
></ExternalLink>
|
||||
{{ i18n.templates.footer.underThe }}
|
||||
<ExternalLink :text="i18n.templates.footer.mit"
|
||||
{{ $t('templates.footer.underThe') }}
|
||||
<ExternalLink :text="$t('templates.footer.mit')"
|
||||
link="https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE"
|
||||
></ExternalLink>
|
||||
{{ i18n.templates.footer.license }}
|
||||
{{ i18n.templates.footer.weWelcomeFeedbackAndContributions }}
|
||||
{{ $t('templates.footer.license') }}
|
||||
{{ $t('templates.footer.weWelcomeFeedbackAndContributions') }}
|
||||
</p>
|
||||
<p>
|
||||
{{ i18n.templates.footer.originallyCreatedBy }}
|
||||
<ExternalLink :text="i18n.templates.footer.balintSzekeres"
|
||||
{{ $t('templates.footer.originallyCreatedBy') }}
|
||||
<ExternalLink :text="$t('templates.footer.balintSzekeres')"
|
||||
link="https://b4lint.hu/"
|
||||
></ExternalLink>,
|
||||
{{ i18n.templates.footer.maintainedBy }}
|
||||
<ExternalLink :text="i18n.templates.footer.digitalOcean"
|
||||
{{ $t('templates.footer.maintainedBy') }}
|
||||
<ExternalLink :text="$t('templates.footer.digitalOcean')"
|
||||
link="https://github.com/digitalocean/nginxconfig.io"
|
||||
></ExternalLink>.
|
||||
</p>
|
||||
@@ -57,7 +57,6 @@ THE SOFTWARE.
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import i18n from '../i18n';
|
||||
import ExternalLink from 'do-vue/src/templates/external_link';
|
||||
|
||||
export default {
|
||||
@@ -65,10 +64,5 @@ THE SOFTWARE.
|
||||
components: {
|
||||
ExternalLink,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
i18n,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user