Inspired by a recent trip to India and the emphasis on local language content, I developed a script to translate my Hugo-based blog using Google Cloud Translate. This script processes markdown files, handles code blocks and pull quotes, and outputs translated versions, expanding the potential reach of my content to non-English speakers. While machine translation isn't perfect, the goal is to improve content discoverability and accessibility for a wider audience. I'll share results as data becomes available.
We rebuilt Pinterest's mobile web experience as a PWA and the results after one year have exceeded our expectations. Weekly active users on mobile web have increased 103% year-over-year, with even higher growth in Brazil (156%) and India (312%). Engagement metrics also saw incredible growth: session length (+296%), Pins seen (+401%), and Pin saves (+295%). Perhaps most importantly, logins increased by 370% and new signups by a staggering 843% year-over-year, making mobile web our top platform for new signups. We've seen 800,000 weekly users add the PWA to their homescreen in under 6 months. Beyond performance, this new platform supports right-to-left languages and night mode, making it more accessible. We're proud of this user experience and excited to continue building on this foundation.
This post discusses how to determine a user's locale in C#. For ASP.NET applications, the Request.UserLanguages array provides the user's preferred languages, with the first element being the primary locale. This can be used to set the thread's culture using CultureInfo.CreateSpecificCulture(). In Windows Forms or services, the current culture can be accessed via Thread.CurrentThread.CurrentCulture and several properties like TwoLetterISOLanguageName or DisplayName allow retrieval of locale information.
This post addresses the Google search query "c# convert date from uk to usa." It provides a C# code snippet using CultureInfo and DateTime to convert a date string formatted according to UK conventions into a US date format. The code takes the date string from a textbox, parses it using the UK culture settings (en-GB), and then formats the resulting DateTime object according to US culture settings (en-US) before outputting it to another textbox.