New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How faker parse and find data/list for format like {{ last_name }} - {{ first-name }} ? #1980
Comments
when i search |
Where did you read about the placeholders? What is your current code? |
How to track down {{ last_name }}? class Provider(CompanyProvider):
formats = (
"{{company_prefix}} {{last_name}}",
"{{company_prefix}} {{last_name}} {{last_name}}",
"{{company_prefix}} {{last_name}} {{company_suffix}}",
"{{company_prefix}} {{last_name}} {{last_name}} {{company_suffix}}",
) Thankyou |
The logic is handled in Line 161 in faa419b
company_suffix from the company provider, the last_name from the person provider. The last name should already use the localized values as far as I understand the code.
|
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Hello new to faker codebase, i have question how faker parse the format tokenName and how its gets the reference for the data of that token name, I want to make company name with locale Indonesia (id_ID) with Indonesian name company or Indonesian last_name,
But I am new to programming and not understand how the codebase work,
do i need to make last_names data/list in id_ID locale for faker.person
__init__.py
and faker will automatically chose the last_name with Indonesia locale or i need do something else?Thank you
The text was updated successfully, but these errors were encountered: