Skip to content

Commit

Permalink
Add instructions for hiding the translate link for polyglots
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Mar 19, 2023
1 parent 6a3083d commit f511a7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ If you like bigger link previews, please implement [this](https://github.com/mas

Edit [this line](https://github.com/mastodon/mastodon/blob/f4f3e2b46e619fcc2eda48c2eb66c517b4f466aa/app/views/layouts/application.html.haml#L24) and recompile assets with `yarn build:production`.

### Hide translate link for multiple languages

If you're a polyglot like me, you can hide the translate link on other languages than default by adding this at the end of the Custom CSS (this example is for people who understand Finnish and German):

```css
.status__content__text[lang="de"].translate + .status__content__read-more-button,
.status__content__text[lang="fi"].translate + .status__content__read-more-button {
display: none;
}
```

## Installation for regular users, contributing and testing

1. Install [live-css-editor](https://github.com/webextensions/live-css-editor) (or any other extension that allows you to inject CSS into web pages) or use [Unite for macOS](https://www.bzgapps.com/unite)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mastodon-bird-ui",
"version": "1.2.1",
"version": "1.2.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f511a7a

Please sign in to comment.