Giter VIP home page Giter VIP logo

Comments (5)

arcanedev-maroc avatar arcanedev-maroc commented on June 16, 2024

No, i don't think so, because the default locale is the app.locale and it's for your whole app/packages, you can't have two default locales.

Try to use the app.fallback_locale as a secondary locale.

from localization.

carlituxman avatar carlituxman commented on June 16, 2024

I don't want use two default locales, I want change it and when it's
changed then hide-default-in-url do it with the new default locale
El 16/11/2015 15:41, "ARCANEDEV" [email protected] escribió:

No, i don't think so, because the default locale is the app.locale, you
can't have two default locales.

Try to use the app.fallback_locale as a secondary locale.


Reply to this email directly or view it on GitHub
#15 (comment)
.

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 16, 2024

OK, i see what you want to do.

You need to change the default locale before using the LocalizationServiceProvider and its services.

The perfect place is using a service provider like AppServiceProvider or creating a custom one and place the LocalizationServiceProvider after that in your app.providers config.

from localization.

carlituxman avatar carlituxman commented on June 16, 2024

Do it!, I use in a provider, but I was doing setSupportedLocales() before
to change de seLocale.

now, it works!

2015-11-16 16:10 GMT+01:00 ARCANEDEV [email protected]:

OK, i see what you want to do.

You need to change the default locale before using the
LocalizationServiceProvider and its services.

The perfect place is using a service provider like AppServiceProvider or
creating a custom one and place the LocalizationServiceProvider after that
in your app.providers config.


Reply to this email directly or view it on GitHub
#15 (comment)
.

Carlos Jiménez Mora
INFORMATIK SOLUCIONES
Tlf: 950 42 62 68 - Serón (Almería)
@carlituxman https://twitter.com/carlituxman - [email protected]

Este mensaje y sus anexos pueden contener información confidencial, por lo
que se informa de que su uso no autorizado está prohibido por la ley. Si
Vd. considera que no es el destinatario pretendido por el remitente o no
desea recibir información comercial, por favor póngalo en su conocimiento
por esta misma vía o por cualquier otro medio y elimine esta comunicación y
los anexos de su sistema, sin copiar, remitir o revelar los contenidos del
mismo a cualquier otra persona. Cualquier información, opinión, conclusión,
recomendación, etc. contenida en el presente mensaje no relacionada con la
actividad empresarial de INFORMATIK BC SOLUCIONES S.L. y/o emitida por
persona sin capacidad para ello, deberá considerarse como no proporcionada
ni aprobada por INFORMATIK BC SOLUCIONES S.L. pone los medios a su alcance
para garantizar la seguridad y ausencia de errores en la correspondencia
electrónica, pero no puede asegurar la inexistencia de virus o la no
alteración de los documentos transmitidos electrónicamente, por lo que
declina cualquier responsabilidad a este respecto.

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 16, 2024

Cool 👍

from localization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.