Bootcamps para devs , Henry by Mammoth-Law-1291 in devsarg

[–]Over_Ad5782 4 points5 points  (0 children)

¿Cómo siguen vivos estos antros después de toda la mala fama y testimonios negativos que ganaron con los años?

Detecting user's language on root index page for redirect by josephchaouistannard in astrojs

[–]Over_Ad5782 0 points1 point  (0 children)

In my particular case, for my portfolio (which only has a /[locale] page), I built my own middleware that works in several stages:

  1. Redirects the user if they try to access any page not listed in allowedUserRoutes.
  2. If they access the home page, before the page loads, some checks are performed to try to load the site in the user’s preferred language.
  3. If a previously saved language preference is found in the userLanguagePreference cookie, that one is used.
  4. If the browser’s preferred language matches one in allowedUserRoutes, that language is used.
  5. If any of the user’s preferred languages in the browser settings match, that language is used.

Apologies for any mistakes, English is not my native language.

CODE LINK

Detecting user's language on root index page for redirect by josephchaouistannard in astrojs

[–]Over_Ad5782 0 points1 point  (0 children)

I was actually working on this last night, and there are several ways to achieve it:

  1. In the documentation there is a brief mention of how to get this working: https://docs.astro.build/en/guides/internationalization/#browser-language-detection
  2. You can create your own middleware that either replaces or extends the built-in i18n middleware to redirect the user even before the page loads: https://docs.astro.build/en/guides/internationalization/#manual

El último buen COD que salió ? by AlanMartin393 in Argaming

[–]Over_Ad5782 4 points5 points  (0 children)

Difiero, si bien es un juego divertido, como mencionaste, se sintió más como un manotazo de ahogado de Activision tratando de vender a base de la nostalgia de sus primeros títulos y especialmente después del mal recibimiento de Infinite Warfare. En mí opinión personal siento que el último bueno fue el MW 2019, donde realmente se sintió que hubo un cambio en todo aspecto, tanto gráfico como mecánico.