question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom File translated Label

See original GitHub issue

I 've done some quick search, without results, so I opened this issue as suggestion

In order to use scss variables we can use the following css with the help of a data-attribute so every developer can use any string he wants

.custom-file-input~.custom-file-label::after {
    content: attr(data-label);
}

<div class="custom-file">
  <input type="file" class="custom-file-input" id="customFileLang" >
  <label class="custom-file-label" for="customFileLang" data-label="Can't see me?">Seleccionar Archivo</label>
</div>

The result as I tested, below https://jsfiddle.net/hc0v648r/1/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Johann-Scommented, Oct 22, 2018

Oh ok sorry for the misunderstanding

0reactions
MartijnCuppenscommented, Jan 5, 2019

I’m going to close this. Changing this to data-label would be a breaking change at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips & Tricks #4 : Quickly translate custom labels from Excel to ...
So I'm going to share you a trick to go faster in the translation of custom labels using a Excel file and metadata...
Read more >
Translate label text for customized tables - Power Apps
Export the translations from the solution that contains the tables that you want to translate label text. Then, open the translations XML file...
Read more >
Custom label translation overview - IBM
The topic provides information about how the translated custom labels are displayed. To enable the translation of a label description, the prefix $...
Read more >
How to Translate Salesforce Custom Labels Cheat Sheet
Learn how to easily translate Salesforce Custom Labels into a new language using Google Translate, or manually, with our cheat sheet.
Read more >
How to translate custom tabs and labels through export/import ...
I am interested if there are ways to export/import translation files for the custom and standard tabs and labels, just like how it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found