Skip to content

Commit

Permalink
Remove i18n support and Spanish content (#330)
Browse files Browse the repository at this point in the history
* Remove i18n

* Link to 5.x migration guide instead of Spanish docs
  • Loading branch information
cmichi committed Mar 11, 2024
1 parent 7dbe5bd commit b9b0d13
Show file tree
Hide file tree
Showing 219 changed files with 30 additions and 19,022 deletions.
1 change: 0 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"language": "en",
"dictionaries": ["rust", "workspace"],
"ignorePaths": ["**/es/**"],
"dictionaryDefinitions": [
{
"name": "workspace",
Expand Down
8 changes: 4 additions & 4 deletions docs/intro/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ hide_table_of_contents: true
</p>
</div>
<div className="col text--center">
<a target="_parent" href="/es/">
<img src="/img/es/ink-goes-spanish.jpg" width="250" style={{ borderRadius: 10, border: '1px solid slategrey' }} />
<a target="_parent" href="/5.x/faq/migrating-from-ink-4-to-5">
<img src="/img/migration-guide.jpg" width="250" style={{ borderRadius: 10, border: '1px solid slategrey' }} />
</a>
<p>
Documentation in Spanish!<br />
<a target="_parent" href="/es/">» view spanish docs</a>
Migrate to ink! 5.0<br />
<a target="_parent" href="/5.x/faq/migrating-from-ink-4-to-5">» view migration guide</a>
</p>
</div>
</div>
Expand Down
31 changes: 0 additions & 31 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,6 @@ module.exports = {
position: 'right',
dropdownActiveClassDisabled: true,
},
{
type: 'dropdown',
label: 'Language',
position: 'right',
items: [
{
href: '../',
label: 'English',
target: '_parent',
},
{
href: '/es/',
label: 'Spanish',
target: '_parent',
},
],
},
],
},
},
Expand Down Expand Up @@ -123,20 +106,6 @@ module.exports = {
},
],
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'es'],
localeConfigs: {
en: {
htmlLang: 'en-GB',
label: 'English',
},
es: {
label: 'Español',
htmlLang: 'es-ES',
},
},
},
plugins: [
async function myPlugin() {
return {
Expand Down
18 changes: 0 additions & 18 deletions i18n/es/docusaurus-plugin-content-docs/README

This file was deleted.

54 changes: 0 additions & 54 deletions i18n/es/docusaurus-plugin-content-docs/current.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit b9b0d13

Please sign in to comment.