You can allow further customization to translation strings via placeholder strings.

For e.g. you can define "hello": "Hello {name}" as a translation string. With a modified text() method in AppTranslations, we can allow placeholder definitions like so.

String text(String key, {Map<String, String>? placeholders}) {
String template = _localisedValues[key] ?? "$key not found";
placeholders?.forEach((key, value) {
template = template.replaceAll('{$key}', value);
});
return template;
}

To use it, we'd simply be calling like so:

AppTranslations.of(context)!
.text('hello', placeholders: {'name': 'Laura'})

Great startup teams can be found in unusual places because they are less likely to be looking for a standard career path. Yes, the purpose of a business is to make a profit, retain customers, be sustainable, and, for some, make a difference in the community. But, none of this is possible without a collaborative effort; continually gathering intellect to become smarter, better and more effective.

Remote work is no longer work these days. We catch up for quick meetings and coffee breaks online. In a company that manages minds, people need to take responsibility for learning what they need…


A few harsh truths that have changed my perspective of life.

Photo by Hello I’m Nik 🎞 on Unsplash

I don’t have enough time for things

Try to eliminate this phrase from your life as soon as you can. There are 168 hours every week in everyone’s lives. Let that sink in for a moment. It’s a monumental amount of time. Where could it possibly go? The average person spends about 5 hours every day on leisure activities according to a survey by the Bureau of Labor Statistics, most of which we spend on YouTube, TV or Netflix. I don’t know about you but I don’t think my TV shows are gonna help me in…


This is seriously not about the aptly named game! Don’t follow through if you’re here for it.

Have you ever experienced utter loneliness while actually being surrounded by lots of people who care about you and shower lots of love? I bet most of us have.

We live in a very tense society. We are constantly pulled apart by it and we need to pull ourselves together. But, honestly, at this point in time, I’m not so sure if there’s going back. Do I love solitude? I don’t have an answer for that either.

I experience the sadness of unsure…


A new form of authentication that is both easy to use and very secure.

Phishing is the #1 security problem on the web: 81% of hacking-related account breaches last year leveraged weak or stolen passwords. The industry’s collective response to this problem has been multi-factor authentication, but implementations are fragmented and most still don’t adequately address phishing. We have been working with the FIDO Alliance since 2013 and, more recently, with the W3C to implement a standardized phishing-resistant protocol that can be used by any Web application.

I recently started doing a course on privacy and security in distributed systems…


We’ve all seen or experienced this in our lives one way or the other.

Disclaimer: Prepare yourselves for a big rant at the people who actually don’t understand what programmers do and how they feel at work. On a more serious note, this article is also meant to be just fun and definitely not to point fingers at any one.

Interruptions

Software devs don’t wear headphones because they love music so much and enjoy it more than anyone else in the world. They do it to shut off the world and all the distracting noise around them. It’s the same as…


It’s been almost two years since I began working remotely. A year as a part-time employee and the next was a full-time job. With companies like Toptal, Mozilla, GitLab, Basecamp living as a proof that success isn’t defined by the number of hours your employees clock in, we’re seeing many companies at least consider this tradition.

This post sums up my experience working as a full-time remote employee at VIPERdev, what I loved about it and what I absolutely despised.

Credits: pexels.com

What is VIPERdev?

VIPERdev is a fully remote software development startup based in Hamburg, Germany. Founded by Lasse Schuirmann, in the summer of…


Last night, I got my first tattoo. It’s something I’ve been ramping up the courage to do for two years. I’m so proud of myself for finally taking the plunge and getting one done.

It’s a small semicolon (;) that rides its way up my left wrist. It’s still a bit sore and red from the inflammation, but I’m starting to like it.

#semicolonproject;

The experience

Do mind that I’m in no way an expert and I just got a small tattoo that is just an inch long. …


The best text editor is neither vim nor emacs, it’s both.

spacemacs ftw!

Recap

About 5 months ago, I forced myself to use a terminal based text editor all the time. I was a VSCode addict and it was too resource hungry just like its brother Google Chrome.


2018’s been a mixed bag of feelings, mostly bored. Hope it gets better this year.

It’s been so long since the last update and it feels like ages already. I’ll try to publish more often this year.

2019 is here, and with the holiday season upon us many people are indulging in retrospection and reevaluating some of their life choices. Now’s the perfect opportunity for all those who have failed to start making the changes that they said they would make next week, next month, or perhaps when winter starts.

Of all the good things happened in 2018, the most notable change is opting out of Facebook and Whatsapp(except for a few important messages). …

Naveen Kumar Sangi

A 23 y. o. Software Dev from India. Pythonista and JavaScript. Reach me at naveenkumarsangi@pm.me

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store