https://twill.io logo
Join Discord
Powered by
# ❓questions
  • i

    ifox

    09/14/2022, 11:40 AM
    not sure I'm following @kalle can you expand?
  • k

    kalle

    09/14/2022, 11:41 AM
    Copy code
    php
    'activity' => twillTrans('twill::lang.dashboard.activities.' . $activity->description),
  • k

    kalle

    09/14/2022, 11:42 AM
    So this creates default translate dynamicly, and now here I have diffrent value from
    $activity->description
    so existing translations fail and I need to add new keys.
  • i

    ifox

    09/14/2022, 11:43 AM
    ok I see, and you want to avoid publishing the entire twill lang file to add yours?
  • k

    kalle

    09/14/2022, 11:43 AM
    I mean if there is no better way Ill need to do that.
  • i

    ifox

    09/14/2022, 11:44 AM
    that's how Laravel works with lang files by default I think, I guess you're expecting the same behavior as Twill's config?
  • i

    ifox

    09/14/2022, 11:44 AM
    maybe it's possible, but yeah at the moment without code change you need the whole file
  • k

    kalle

    09/14/2022, 11:46 AM
    Yeah I dont think there is better way for now too. Maybe later we can create user lang config files which could be merged into existing Twill lang file dynamicly on fly for these use cases. Submitted request for this https://github.com/area17/twill/issues/1817 Let me know if Im wrong on something
  • o

    onepiece

    09/14/2022, 1:15 PM
    Hey guys. How can I test if a package I built works or not??
  • i

    ifox

    09/14/2022, 1:15 PM
    well, does it work?
  • i

    ifox

    09/14/2022, 1:16 PM
    just kidding
  • i

    ifox

    09/14/2022, 1:16 PM
    do you mean to see if the install works through composer?
  • i

    ifox

    09/14/2022, 1:16 PM
    did you publish it to packagist?
  • o

    onepiece

    09/14/2022, 1:18 PM
    To be clear. I built a functionality and I am able to convert this functionality into a package. Now I want to see if this package works for me or not. But in the same project I have both the functionality and the package
  • i

    ifox

    09/14/2022, 1:18 PM
    create a fresh twill project to install the package?
  • o

    onepiece

    09/14/2022, 1:20 PM
    no, not yet. I will try it if it works or not
  • o

    onepiece

    09/14/2022, 1:20 PM
    ok
  • i

    ifox

    09/14/2022, 1:22 PM
    I'm not sure what the package does, but you can probably comment or remove the code that's inside the app to make sure that it is the package code that is used in your app
  • o

    onepiece

    09/14/2022, 1:24 PM
    ok,i will try
  • o

    onepiece

    09/14/2022, 1:59 PM
    I removed the code that I had added and left only the package, but it does not work for me. The package contains a custom component (a crud table in which the emails of users who subscribe are displayed)
  • i

    ifox

    09/14/2022, 2:00 PM
    Totally unrelated to your issue but I don't think you'll want to use the area17 namespace for it
  • i

    ifox

    09/14/2022, 2:00 PM
    you won't be able to publish it to our name
  • i

    ifox

    09/14/2022, 2:02 PM
    Did you register your package custom components? did you rebuild twill assets?
  • a

    alitak

    09/15/2022, 8:56 AM
    hi, i have still problem with the custom vuejs development. I have now the 3.x branch from twill, so it is the newst codebase. If I run the twill:dev command, everythings seems ok, the dev server starts, but the system misses the manifest file
  • h

    Harings Rob

    09/15/2022, 8:57 AM
    you have the dev mode enabled in your .env?
  • a

    alitak

    09/15/2022, 9:03 AM
    yes, it is set to true
  • h

    Harings Rob

    09/15/2022, 9:05 AM
    I honestly do not know why it is not working for you 😦 if you run twill:build it does work?
  • a

    alitak

    09/15/2022, 9:09 AM
    yes
  • a

    alitak

    09/15/2022, 9:10 AM
    but if i set the dev mode to false, the page works
  • a

    alitak

    09/15/2022, 9:24 AM
    i will try a clean install with the 3.x branch, maybe something is broken in my codebase
1...392393394...484Latest