Hello phantonym,
If you are including this text from your phtml file the there you can use it as
<?= __("Your desired text"); ?>
And then add your translation in translation csv file.
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($){
$(window).load(function() {
alert($.mage.__('Your desired text'));
});
});
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way and then translate it in your translation csv.
Hope this will help you.